   | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Struts - A MVC web framework | | Tomcat - JSP/Servlet container | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | | JSP - A mailing list about Java Server Pages specification and reference | |
Struts & Hibernate
|
|
|
  | |  | SV: [jdom-interest] DOMBuilder problem | SV: [jdom-interest] DOMBuilder problem 2003-10-10 - By Per Norrman
Back Hi, do you have a specific reason for using DOMBuilder? Otherwise, you're better of using SAXBuilder. /pmn -- --Ursprungligt meddelande-- -- Fr?n: jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] F?r Gina Pan Skickat: den 10 oktober 2003 00:43 Till: jdom-interest@(protected) ?mne: [jdom-interest] DOMBuilder problem
Hi, I am trying to use DOMBuilder to read an XML file to a DOM tree but it gives me an error as shown below: org.jdom.JDOMException : Error in building from stream: Class org.jdom.input.DOMBuilder can not access a member of class gnu.xml.dom.JAXPFactory $JAXPBuilder with modifiers "public" at org.jdom.input.DOMBuilder (DOMBuilder.java:298) at nz.co.mortgagechoice.MCSession.loadFromXML(MCSession.java:207) at nz.co.mortgagechoice.MCSession.<init>(MCSession.java:185) at nz.co.mortgagechoice.ui.MCContext.<init>(MCContext.java:46) at nz.co.mortgagechoice.ui.MortgageChoiceApplication.<init>(MortgageChoiceAppli cation.java:19) at nz.co.mortgagechoice.ui.MortgageChoiceApplication.main(MortgageChoiceApplica tion.java:52) **************************************** Here is my code which causes the problem: import org.jdom.*; import org.jdom.input.*; import org.jdom.output.*; public void loadFromXML () throws Exception { Document document = null; Element element = null; InputStream stream = getClass().getResourceAsStream ("/config.xml"); if (stream == null){ return; } DOMBuilder builder = new DOMBuilder (); document = builder.build (stream); if ((document == null) || (document.getRootElement() == null) || (!document.getRootElement().getName().equals("config"))) throw new Exception("invalid document"); ..... ..... } Could anybody please help me? Many thanks, Gina DISCLAIMER: The content of this email is confidential and may contain legally privileged information intended only for the individual or entity named above. Access to this message by anyone else is unauthorised. If you are not the intended recipient, please be advised that the use, distribution and publication of the above information is prohibited. If you have received this email in error, please contact us by returning the email and destroying the original. Thank you.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = "urn:schemas-microsoft-com:office:office" xmlns:w = "urn:schemas-microsoft-com:office:word"><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <TITLE>Meddelande</TITLE>
<META content=Word.Document name=ProgId> <META content="MSHTML 6.00.2800.1264" name=GENERATOR> <META content="Microsoft Word 10" name=Originator><LINK href="cid:filelist.xml@(protected)" rel=File-List><!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:DoNotRelyOnCSS/> </o:OfficeDocumentSettings> </xml><![endif]--><!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:DocumentKind>DocumentEmail</w:DocumentKind> <w:EnvelopeVis/> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> </w:WordDocument> </xml><![endif]--> <STYLE>@(protected) Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90 .0pt; mso-header-margin: 35.4pt; mso-footer-margin: 35.4pt; mso-paper-source: 0; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } DIV.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; mso -style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" } A:link { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlink { COLOR: blue; TEXT-DECORATION: underline; text-underline: single } A:visited { COLOR: purple; TEXT-DECORATION: underline; text-underline: single } SPAN.MsoHyperlinkFollowed { COLOR: purple; TEXT-DECORATION: underline; text-underline: single } SPAN.EmailStyle17 { COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose; mso -style-noshow: yes; mso-ansi-font-size: 10.0pt; mso-bidi-font-size: 10.0pt; mso -ascii-font-family: Arial; mso-hansi-font-family: Arial; mso-bidi-font-family: Arial } SPAN.SpellE { mso-style-name: ""; mso-spl-e: yes } SPAN.GramE { mso-style-name: ""; mso-gram-e: yes } DIV.Section1 { page: Section1 } </STYLE> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} </style> <![endif]--></HEAD> <BODY lang=EN-NZ style="tab-interval: 36.0pt" vLink=purple link=blue> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2>Hi,</FONT></SPAN></DIV> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2>do you have a specific reason for using DOMBuilder? Otherwise, you're</FONT></SPAN></DIV> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2 >better of using SAXBuilder.</FONT></SPAN></DIV> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2></FONT></SPAN> </DIV> <DIV><SPAN class=199584007-10102003><FONT face=Arial color=#0000ff size=2>/pmn</FONT></SPAN></DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=sv dir=ltr align=left><FONT face=Tahoma size=2>-- --Ursprungligt meddelande-- --<BR><B>Fr?n:</B> jdom-interest-admin@(protected) [mailto:jdom-interest-admin@(protected)] <B>F?r </B>Gina Pan<BR><B>Skickat:</B> den 10 oktober 2003 00:43<BR><B>Till:</B> jdom-interest@(protected)<BR><B>?mne:</B> [jdom-interest] DOMBuilder problem<BR><BR></FONT></DIV> <DIV class=Section1> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P> <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black">I am trying to use <SPAN class=SpellE>DOMBuilder</SPAN> to read an XML file to a DOM tree but it gives me an error as shown below:<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><SPAN class=SpellE><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white">org.jdom.JDOMException </SPAN></FONT></SPAN> <FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white">: Error in building from stream: Class <SPAN class=SpellE>org.jdom.input.DOMBuilder </SPAN> can not access a member of class <SPAN class=SpellE>gnu.xml.dom.JAXPFactory $JAXPBuilder</SPAN> with modifiers "public"</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>org.jdom.input.DOMBuilder </SPAN>(DOMBuilder.java:298)< /SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>nz.co.mortgagechoice.MCSession.loadFromXML</SPAN>(MCSession.java :207)</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>nz.co.mortgagechoice.MCSession</SPAN>.<init>(MCSession .java:185)</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>nz.co.mortgagechoice.ui.MCContext</SPAN>.<init>(MCContext .java:46)</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>nz.co.mortgagechoice.ui.MortgageChoiceApplication</SPAN>.< ;init>(MortgageChoiceApplication.java:19)</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; COLOR: black; FONT-FAMILY: 'Courier New'; mso-highlight: white"><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>at</SPAN> <SPAN class=SpellE>nz.co.mortgagechoice.ui.MortgageChoiceApplication.main</SPAN> (MortgageChoiceApplication.java:52)</SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">*********** *****************************<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">Here is my code which causes the problem:<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><SPAN class=GramE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-highlight: white">import</SPAN></FONT></B>< /SPAN><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">org.jdom</SPAN></FONT></SPAN><FONT color=black><SPAN style="COLOR: black">.*;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><SPAN class=GramE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-highlight: white">import</SPAN></FONT></B>< /SPAN><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">org.jdom.input</SPAN></FONT></SPAN><FONT color=black><SPAN style="COLOR: black">.*;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><SPAN class=GramE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-highlight: white">import</SPAN></FONT></B>< /SPAN><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">org.jdom.output</SPAN></FONT></SPAN><FONT color=black><SPAN style="COLOR: black">.*;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><SPAN class=GramE><B><FONT face="Courier New" color=#7f0055 size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND: white; COLOR: #7f0055; FONT-FAMILY: 'Courier New'; mso-highlight: white">public</SPAN></FONT></B>< /SPAN><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">void</SPAN></FONT></B> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">loadFromXML</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">()</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">throws</SPAN></FONT></B> <FONT color=black><SPAN style="COLOR: black">Exception</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">{</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><FONT color=black><SPAN style="COLOR: black">Document</SPAN></FONT> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">document</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">=</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">null</SPAN></FONT></B><FONT color=black><SPAN style="COLOR: black">;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN style="mso-spacerun: yes"> </SPAN><FONT color=black><SPAN style="COLOR: black">Element</SPAN></FONT> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">element</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">=</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">null</SPAN></FONT></B><FONT color=black><SPAN style="COLOR: black">;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN>< /FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">InputStream</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">stream</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">=</SPAN></FONT> <SPAN class=SpellE><SPAN class=GramE><FONT color=black><SPAN style="COLOR: black">getClass</SPAN></FONT></SPAN></SPAN><SPAN class=GramE><FONT color=black><SPAN style="COLOR: black">(</SPAN></FONT></SPAN><FONT color=black><SPAN style="COLOR: black">).<SPAN class=SpellE>getResourceAsStream</SPAN></SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">(</SPAN></FONT><FONT color=#2a00ff><SPAN style="COLOR: #2a00ff">"/<SPAN class=SpellE>config.xml</SPAN>"</SPAN></FONT><FONT color=black><SPAN style="COLOR: black">);</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=GramE><B> <FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">if</SPAN></FONT></B></SPAN> <FONT color=black><SPAN style="COLOR: black">(stream</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">==</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">null</SPAN></FONT></B><FONT color=black><SPAN style="COLOR: black">){</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=GramE><B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">return</SPAN></FONT></B></SPAN> <FONT color=black><SPAN style="COLOR: black">;</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><FONT color=black><SPAN style="COLOR: black">}</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN>< /FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">DOMBuilder</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">builder</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">=</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">new</SPAN></FONT></B> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">DOMBuilder</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">();</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=GramE><FONT color=black><SPAN style="COLOR: black">document</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">=</SPAN></FONT> <SPAN class=SpellE><FONT color=black><SPAN style="COLOR: black">builder.build</SPAN></FONT></SPAN> <FONT color=black><SPAN style="COLOR: black">(stream);</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN>< /FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=GramE><B> <FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">if</SPAN></FONT></B></SPAN> <FONT color=black><SPAN style="COLOR: black">((document</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">==</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">null</SPAN></FONT></B><FONT color=black><SPAN style="COLOR: black">)</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><FONT color=black><SPAN style="COLOR: black">||</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">(<SPAN class=SpellE><SPAN class=GramE>document.getRootElement</SPAN></SPAN><SPAN class=GramE>(</SPAN>)</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">==</SPAN></FONT> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">null</SPAN></FONT></B><FONT color=black><SPAN style="COLOR: black">)</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><FONT color=black><SPAN style="COLOR: black">||</SPAN></FONT> <FONT color=black><SPAN style="COLOR: black">(<SPAN class=GramE>!<SPAN class=SpellE>document.getRootElement</SPAN></SPAN>().<SPAN class=SpellE>getName</SPAN>().equals(</SPAN></FONT><FONT color=#2a00ff><SPAN style="COLOR: #2a00ff">"<SPAN class=SpellE>config</SPAN>"</SPAN></FONT><FONT color=black><SPAN style="COLOR: black">)))</SPAN></FONT></SPAN></FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; BACKGROUND: white; FONT-FAMILY: 'Courier New'; mso -highlight: white"><SPAN style="mso-spacerun: yes"> </SPAN><SPAN class=GramE><B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">throw</SPAN></FONT></B></SPAN> <B><FONT color=#7f0055><SPAN style="FONT-WEIGHT: bold; COLOR: #7f0055">new</SPAN></FONT></B> <FONT color=black><SPAN style="COLOR: black">Exception(</SPAN></FONT><FONT color=#2a00ff><SPAN style="COLOR: #2a00ff">"invalid document"</SPAN></FONT><FONT color=black><SPAN style="COLOR: black">);</SPAN></FONT></SPAN></FONT><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p></o:p> </SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-spacerun: yes"> </SPAN>.....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><SPAN style="mso-spacerun: yes"> </SPAN>.....<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'">}</SPAN>< /FONT><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT> </P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=black size=2><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" color=red size=2><SPAN style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'"><o:p> < /o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Could anybody please help me?<SPAN style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN>< /FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Many thanks,<o:p></o:p></SPAN></FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p> </o:p></SPAN>< /FONT></P> <P class=MsoNormal style="mso-layout-grid-align: none"><FONT face="Courier New" size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Gina<o:p></o:p></SPAN>< /FONT></P> <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face="Times New Roman" color=black size=3><SPAN style="FONT-SIZE: 12pt; COLOR: black"><o:p> </o:p></SPAN></FONT></P> <P class=MsoNormal><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT>< /P></DIV> <P align=center><FONT face=Tahoma size=2><FONT color=#0000ff>DISCLAIMER: The content of this email is confidential and may contain legally privileged information intended only for the individual or entity named above. Access to this message by anyone else is unauthorised. If you are not the intended recipient, please be advised that the use, distribution and publication of the above information is prohibited. If you have received this email in error, please contact us by returning the email and destroying the original. Thank you.</FONT></FONT></P></BLOCKQUOTE></BODY></HTML>
Earn $52 per hosting referral at Lunarpages.
|
|
 |