/[debian]/libjempbox-java/branches/upstream/current/docs/javadoc/org/jempbox/impl/XMLUtil.html
ViewVC logotype

Contents of /libjempbox-java/branches/upstream/current/docs/javadoc/org/jempbox/impl/XMLUtil.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 427 - (show annotations)
Fri Nov 17 21:04:18 2006 UTC (14 years, 8 months ago) by gregoa
File MIME type: text/html
File size: 30147 byte(s)
[svn-inject] Installing original source of libjempbox-java
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <!--NewPage-->
3 <HTML>
4 <HEAD>
5 <!-- Generated by javadoc (build 1.4.2_07) on Wed Apr 19 20:38:25 EDT 2006 -->
6 <TITLE>
7 XMLUtil (JempBox-0.1.0-dev API)
8 </TITLE>
9
10 <META NAME="keywords" CONTENT="org.jempbox.impl.XMLUtil class">
11
12 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
13
14 <SCRIPT type="text/javascript">
15 function windowTitle()
16 {
17 parent.document.title="XMLUtil (JempBox-0.1.0-dev API)";
18 }
19 </SCRIPT>
20
21 </HEAD>
22
23 <BODY BGCOLOR="white" onload="windowTitle();">
24
25
26 <!-- ========= START OF TOP NAVBAR ======= -->
27 <A NAME="navbar_top"><!-- --></A>
28 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30 <TR>
31 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32 <A NAME="navbar_top_firstrow"><!-- --></A>
33 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
43 </TR>
44 </TABLE>
45 </TD>
46 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
47 </EM>
48 </TD>
49 </TR>
50
51 <TR>
52 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
53 &nbsp;<A HREF="../../../org/jempbox/impl/DateConverter.html" title="class in org.jempbox.impl"><B>PREV CLASS</B></A>&nbsp;
54 &nbsp;NEXT CLASS</FONT></TD>
55 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
56 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
57 &nbsp;<A HREF="XMLUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
58 &nbsp;<SCRIPT type="text/javascript">
59 <!--
60 if(window==top) {
61 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
62 }
63 //-->
64 </SCRIPT>
65 <NOSCRIPT>
66 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
67 </NOSCRIPT>
68
69 </FONT></TD>
70 </TR>
71 <TR>
72 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
73 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
74 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
75 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
76 </TR>
77 </TABLE>
78 <A NAME="skip-navbar_top"></A>
79 <!-- ========= END OF TOP NAVBAR ========= -->
80
81 <HR>
82 <!-- ======== START OF CLASS DATA ======== -->
83 <H2>
84 <FONT SIZE="-1">
85 org.jempbox.impl</FONT>
86 <BR>
87 Class XMLUtil</H2>
88 <PRE>
89 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">java.lang.Object</A>
90 <IMG SRC="../../../resources/inherit.gif" ALT="extended by"><B>org.jempbox.impl.XMLUtil</B>
91 </PRE>
92 <HR>
93 <DL>
94 <DT>public class <B>XMLUtil</B><DT>extends <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></DL>
95
96 <P>
97 This class with handle some simple XML operations.
98 <P>
99
100 <P>
101 <DL>
102 <DT><B>Version:</B></DT>
103 <DD>$Revision: 1.1 $</DD>
104 <DT><B>Author:</B></DT>
105 <DD>Ben Litchfield (ben@benlitchfield.com)</DD>
106 </DL>
107 <HR>
108
109 <P>
110 <!-- ======== NESTED CLASS SUMMARY ======== -->
111
112
113 <!-- =========== FIELD SUMMARY =========== -->
114
115
116 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
117
118
119 <!-- ========== METHOD SUMMARY =========== -->
120
121 <A NAME="method_summary"><!-- --></A>
122 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
123 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
124 <TD COLSPAN=2><FONT SIZE="+2">
125 <B>Method Summary</B></FONT></TD>
126 </TR>
127 <TR BGCOLOR="white" CLASS="TableRowColor">
128 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
129 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A></CODE></FONT></TD>
130 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#getElement(org.w3c.dom.Element, java.lang.String)">getElement</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
131 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;elementName)</CODE>
132
133 <BR>
134 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the first instance of an element by name.</TD>
135 </TR>
136 <TR BGCOLOR="white" CLASS="TableRowColor">
137 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
138 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A></CODE></FONT></TD>
139 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#getIntValue(org.w3c.dom.Element, java.lang.String)">getIntValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
140 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName)</CODE>
141
142 <BR>
143 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the integer value of a subnode.</TD>
144 </TR>
145 <TR BGCOLOR="white" CLASS="TableRowColor">
146 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
147 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
148 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#getStringValue(org.w3c.dom.Element)">getStringValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;node)</CODE>
149
150 <BR>
151 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will get the text value of an element.</TD>
152 </TR>
153 <TR BGCOLOR="white" CLASS="TableRowColor">
154 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
155 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A></CODE></FONT></TD>
156 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#getStringValue(org.w3c.dom.Element, java.lang.String)">getStringValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
157 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName)</CODE>
158
159 <BR>
160 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the value of a subnode.</TD>
161 </TR>
162 <TR BGCOLOR="white" CLASS="TableRowColor">
163 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A></CODE></FONT></TD>
165 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#newDocument()">newDocument</A></B>()</CODE>
166
167 <BR>
168 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create a new blank XML document.</TD>
169 </TR>
170 <TR BGCOLOR="white" CLASS="TableRowColor">
171 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A></CODE></FONT></TD>
173 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#parse(java.io.InputStream)">parse</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;is)</CODE>
174
175 <BR>
176 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will parse an XML stream and create a DOM document.</TD>
177 </TR>
178 <TR BGCOLOR="white" CLASS="TableRowColor">
179 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
180 <CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A></CODE></FONT></TD>
181 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#parse(java.lang.String)">parse</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;fileName)</CODE>
182
183 <BR>
184 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will parse an XML stream and create a DOM document.</TD>
185 </TR>
186 <TR BGCOLOR="white" CLASS="TableRowColor">
187 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
188 <CODE>static&nbsp;void</CODE></FONT></TD>
189 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#save(org.w3c.dom.Document, java.lang.String, java.lang.String)">save</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A>&nbsp;doc,
190 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;file,
191 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;encoding)</CODE>
192
193 <BR>
194 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Save the XML document to a file.</TD>
195 </TR>
196 <TR BGCOLOR="white" CLASS="TableRowColor">
197 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
198 <CODE>static&nbsp;void</CODE></FONT></TD>
199 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#setElementableValue(org.w3c.dom.Element, java.lang.String, org.jempbox.xmp.Elementable)">setElementableValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
200 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
201 <A HREF="../../../org/jempbox/xmp/Elementable.html" title="interface in org.jempbox.xmp">Elementable</A>&nbsp;node)</CODE>
202
203 <BR>
204 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set an XML element document.</TD>
205 </TR>
206 <TR BGCOLOR="white" CLASS="TableRowColor">
207 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
208 <CODE>static&nbsp;void</CODE></FONT></TD>
209 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#setIntValue(org.w3c.dom.Element, java.lang.String, java.lang.Integer)">setIntValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
210 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName,
211 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A>&nbsp;intValue)</CODE>
212
213 <BR>
214 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the integer value of an element.</TD>
215 </TR>
216 <TR BGCOLOR="white" CLASS="TableRowColor">
217 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
218 <CODE>static&nbsp;void</CODE></FONT></TD>
219 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#setStringValue(org.w3c.dom.Element, java.lang.String)">setStringValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;node,
220 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;value)</CODE>
221
222 <BR>
223 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This will set the text value of an element.</TD>
224 </TR>
225 <TR BGCOLOR="white" CLASS="TableRowColor">
226 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
227 <CODE>static&nbsp;void</CODE></FONT></TD>
228 <TD><CODE><B><A HREF="../../../org/jempbox/impl/XMLUtil.html#setStringValue(org.w3c.dom.Element, java.lang.String, java.lang.String)">setStringValue</A></B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
229 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName,
230 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeValue)</CODE>
231
232 <BR>
233 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the value of an element.</TD>
234 </TR>
235 </TABLE>
236 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
237 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
238 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
239 <TD><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD>
240 </TR>
241 <TR BGCOLOR="white" CLASS="TableRowColor">
242 <TD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
243 </TR>
244 </TABLE>
245 &nbsp;
246 <P>
247
248 <!-- ============ FIELD DETAIL =========== -->
249
250
251 <!-- ========= CONSTRUCTOR DETAIL ======== -->
252
253
254 <!-- ============ METHOD DETAIL ========== -->
255
256 <A NAME="method_detail"><!-- --></A>
257 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
258 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
259 <TD COLSPAN=1><FONT SIZE="+2">
260 <B>Method Detail</B></FONT></TD>
261 </TR>
262 </TABLE>
263
264 <A NAME="parse(java.io.InputStream)"><!-- --></A><H3>
265 parse</H3>
266 <PRE>
267 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A> <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/InputStream.html" title="class or interface in java.io">InputStream</A>&nbsp;is)
268 throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
269 <DL>
270 <DD>This will parse an XML stream and create a DOM document.
271 <P>
272 <DD><DL>
273 <DT><B>Parameters:</B><DD><CODE>is</CODE> - The stream to get the XML from.
274 <DT><B>Returns:</B><DD>The DOM document.
275 <DT><B>Throws:</B>
276 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - It there is an error creating the dom.</DL>
277 </DD>
278 </DL>
279 <HR>
280
281 <A NAME="parse(java.lang.String)"><!-- --></A><H3>
282 parse</H3>
283 <PRE>
284 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A> <B>parse</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;fileName)
285 throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
286 <DL>
287 <DD>This will parse an XML stream and create a DOM document.
288 <P>
289 <DD><DL>
290 <DT><B>Parameters:</B><DD><CODE>fileName</CODE> - The file to get the XML from.
291 <DT><B>Returns:</B><DD>The DOM document.
292 <DT><B>Throws:</B>
293 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - It there is an error creating the dom.</DL>
294 </DD>
295 </DL>
296 <HR>
297
298 <A NAME="newDocument()"><!-- --></A><H3>
299 newDocument</H3>
300 <PRE>
301 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A> <B>newDocument</B>()
302 throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE>
303 <DL>
304 <DD>Create a new blank XML document.
305 <P>
306 <DD><DL>
307
308 <DT><B>Returns:</B><DD>The new blank XML document.
309 <DT><B>Throws:</B>
310 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - If there is an error creating the XML document.</DL>
311 </DD>
312 </DL>
313 <HR>
314
315 <A NAME="getElement(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
316 getElement</H3>
317 <PRE>
318 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A> <B>getElement</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
319 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;elementName)</PRE>
320 <DL>
321 <DD>Get the first instance of an element by name.
322 <P>
323 <DD><DL>
324 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent to get the element from.<DD><CODE>elementName</CODE> - The name of the element to look for.
325 <DT><B>Returns:</B><DD>The element or null if it is not found.</DL>
326 </DD>
327 </DL>
328 <HR>
329
330 <A NAME="getIntValue(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
331 getIntValue</H3>
332 <PRE>
333 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> <B>getIntValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
334 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName)</PRE>
335 <DL>
336 <DD>Get the integer value of a subnode.
337 <P>
338 <DD><DL>
339 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent element that holds the values.<DD><CODE>nodeName</CODE> - The name of the node that holds the integer value.
340 <DT><B>Returns:</B><DD>The integer value of the node.
341 <DT><B>Throws:</B>
342 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/NumberFormatException.html" title="class or interface in java.lang">NumberFormatException</A></CODE> - If there is an error creating the Integer.</DL>
343 </DD>
344 </DL>
345 <HR>
346
347 <A NAME="setIntValue(org.w3c.dom.Element, java.lang.String, java.lang.Integer)"><!-- --></A><H3>
348 setIntValue</H3>
349 <PRE>
350 public static void <B>setIntValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
351 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName,
352 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A>&nbsp;intValue)</PRE>
353 <DL>
354 <DD>Set the integer value of an element.
355 <P>
356 <DD><DL>
357 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent element that will hold this subelement.<DD><CODE>nodeName</CODE> - The name of the subelement.<DD><CODE>intValue</CODE> - The value to set.</DL>
358 </DD>
359 </DL>
360 <HR>
361
362 <A NAME="getStringValue(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
363 getStringValue</H3>
364 <PRE>
365 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getStringValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
366 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName)</PRE>
367 <DL>
368 <DD>Get the value of a subnode.
369 <P>
370 <DD><DL>
371 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent element that holds the values.<DD><CODE>nodeName</CODE> - The name of the node that holds the value.
372 <DT><B>Returns:</B><DD>The value of the sub node.</DL>
373 </DD>
374 </DL>
375 <HR>
376
377 <A NAME="setStringValue(org.w3c.dom.Element, java.lang.String, java.lang.String)"><!-- --></A><H3>
378 setStringValue</H3>
379 <PRE>
380 public static void <B>setStringValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
381 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeName,
382 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;nodeValue)</PRE>
383 <DL>
384 <DD>Set the value of an element.
385 <P>
386 <DD><DL>
387 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent element that will hold this subelement.<DD><CODE>nodeName</CODE> - The name of the subelement.<DD><CODE>nodeValue</CODE> - The value to set.</DL>
388 </DD>
389 </DL>
390 <HR>
391
392 <A NAME="getStringValue(org.w3c.dom.Element)"><!-- --></A><H3>
393 getStringValue</H3>
394 <PRE>
395 public static <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getStringValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;node)</PRE>
396 <DL>
397 <DD>This will get the text value of an element.
398 <P>
399 <DD><DL>
400 <DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to get the text value for.
401 <DT><B>Returns:</B><DD>The text of the node.</DL>
402 </DD>
403 </DL>
404 <HR>
405
406 <A NAME="setStringValue(org.w3c.dom.Element, java.lang.String)"><!-- --></A><H3>
407 setStringValue</H3>
408 <PRE>
409 public static void <B>setStringValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;node,
410 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;value)</PRE>
411 <DL>
412 <DD>This will set the text value of an element.
413 <P>
414 <DD><DL>
415 <DT><B>Parameters:</B><DD><CODE>node</CODE> - The node to get the text value for.<DD><CODE>value</CODE> - The new value to set the node to.</DL>
416 </DD>
417 </DL>
418 <HR>
419
420 <A NAME="setElementableValue(org.w3c.dom.Element, java.lang.String, org.jempbox.xmp.Elementable)"><!-- --></A><H3>
421 setElementableValue</H3>
422 <PRE>
423 public static void <B>setElementableValue</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Element.html" title="class or interface in org.w3c.dom">Element</A>&nbsp;parent,
424 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;name,
425 <A HREF="../../../org/jempbox/xmp/Elementable.html" title="interface in org.jempbox.xmp">Elementable</A>&nbsp;node)</PRE>
426 <DL>
427 <DD>Set an XML element document.
428 <P>
429 <DD><DL>
430 <DT><B>Parameters:</B><DD><CODE>parent</CODE> - The parent document to set the value in.<DD><CODE>name</CODE> - The name of the XML element to set.<DD><CODE>node</CODE> - The node to set or clear.</DL>
431 </DD>
432 </DL>
433 <HR>
434
435 <A NAME="save(org.w3c.dom.Document, java.lang.String, java.lang.String)"><!-- --></A><H3>
436 save</H3>
437 <PRE>
438 public static void <B>save</B>(<A HREF="http://java.sun.com/j2se/1.4.2/docs/api/org/w3c/dom/Document.html" title="class or interface in org.w3c.dom">Document</A>&nbsp;doc,
439 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;file,
440 <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>&nbsp;encoding)
441 throws <A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/TransformerException.html" title="class or interface in javax.xml.transform">TransformerException</A></PRE>
442 <DL>
443 <DD>Save the XML document to a file.
444 <P>
445 <DD><DL>
446 <DT><B>Parameters:</B><DD><CODE>doc</CODE> - The XML document to save.<DD><CODE>file</CODE> - The file to save the document to.<DD><CODE>encoding</CODE> - The encoding to save the file as.
447 <DT><B>Throws:</B>
448 <DD><CODE><A HREF="http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/transform/TransformerException.html" title="class or interface in javax.xml.transform">TransformerException</A></CODE> - If there is an error while saving the XML.</DL>
449 </DD>
450 </DL>
451 <!-- ========= END OF CLASS DATA ========= -->
452 <HR>
453
454
455 <!-- ======= START OF BOTTOM NAVBAR ====== -->
456 <A NAME="navbar_bottom"><!-- --></A>
457 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
458 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
459 <TR>
460 <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
461 <A NAME="navbar_bottom_firstrow"><!-- --></A>
462 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
463 <TR ALIGN="center" VALIGN="top">
464 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
465 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
466 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
467 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XMLUtil.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
468 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
469 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
470 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
471 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
472 </TR>
473 </TABLE>
474 </TD>
475 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
476 </EM>
477 </TD>
478 </TR>
479
480 <TR>
481 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
482 &nbsp;<A HREF="../../../org/jempbox/impl/DateConverter.html" title="class in org.jempbox.impl"><B>PREV CLASS</B></A>&nbsp;
483 &nbsp;NEXT CLASS</FONT></TD>
484 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
485 <A HREF="../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
486 &nbsp;<A HREF="XMLUtil.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
487 &nbsp;<SCRIPT type="text/javascript">
488 <!--
489 if(window==top) {
490 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
491 }
492 //-->
493 </SCRIPT>
494 <NOSCRIPT>
495 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
496 </NOSCRIPT>
497
498 </FONT></TD>
499 </TR>
500 <TR>
501 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
502 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
503 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
504 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
505 </TR>
506 </TABLE>
507 <A NAME="skip-navbar_bottom"></A>
508 <!-- ======== END OF BOTTOM NAVBAR ======= -->
509
510 <HR>
511
512 </BODY>
513 </HTML>

  ViewVC Help
Powered by ViewVC 1.1.26