SystemID for Parsed XML Data
Chetan Raj <[email protected]> Tue, 17 May 2005 19:11:16 +0530
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
--===============1932842179== Content-Type: multipart/alternative; boundary="----=_Part_451_5153339.1116337276994" ------=_Part_451_5153339.1116337276994 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi All, Can any one suggest me how to provide "systemID" to the Xml being parsed. The gdome API to parse a stream or an XML File, does not take any arguments= =20 for the systemID. Ex: gdome_di_createDocFromMemory (GdomeDOMImplementation *self, char=20 *buffer, unsigned int mode, GdomeException *exc) If I want to associate a "SystemID" to the Xml contents in the memory using= =20 gdome, what are the steps to be followed? Please note that Java XML APIs provide the following API >> public Document <http://www.gnu.org/software/classpathx/jaxp/apidoc/org/w3c/dom/Document.ht= ml> parse(InputStream is, String systemId) Parse the specified input stream and return a DOM Document.=20 *Parameters:*is - an XML input streamsystemId - the system ID of the XML= =20 document<< Does gdome have an equivalent API which does the above function,= =20 if not are there any workarounds? Thanks, Chetan Raj ------=_Part_451_5153339.1116337276994 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Hi All,</span>= <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Can any one su= ggest me how to provide "systemID" to the Xml being parsed.</span= ><br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">The gdome API = to parse a stream or an XML File, does not take any arguments for the syste= mID.</span><br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Ex: gdom= e_di_createDocFromMemory (GdomeDOMImplementation *self, char *buffer, unsig= ned int mode, GdomeException *exc)</span><br style=3D"font-family: verdana;= color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">If I want to a= ssociate a "SystemID" to the Xml contents in the memory using gdo= me, what are the steps to be followed?</span><br style=3D"font-family= : verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);"><br> Please note that Java XML APIs provide the following API</span><br style=3D= "font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">>></span= ><br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <pre style=3D"font-family: verdana; color: rgb(0, 0, 153);" class=3D"member= detail synopsis"><a name=3D"parse(InputStream,String)">public </a><a href= =3D"http://www.gnu.org/software/classpathx/jaxp/apidoc/org/w3c/dom/Document= .html" title=3D"Interface in org.w3c.dom"> Document</a> parse(InputStream is, String systemId) </pre> <div style=3D"font-family: verdana; color: rgb(0, 0, 153);" class=3D"member= detail description"> Parse the specified input stream and return a DOM Doc= ument. </div> <dl style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <dt class=3D"header"><b>Parameters:</b></dt><dd class=3D"item"><code class= =3D"name">is</code><span class=3D"separator"> - </span><span class=3D"descr= iption">an XML input stream</span></dd><dd class=3D"item"><code class=3D"na= me">systemId </code><span class=3D"separator"> - </span><span class=3D"description">the = system ID of the XML document</span></dd><dt><<</dt> </dl> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Does gdome hav= e an equivalent API which does the above function, if not are there any wor= karounds?</span><br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Thanks,</span>= <br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <span style=3D"font-family: verdana; color: rgb(0, 0, 153);">Chetan Raj</sp= an><br style=3D"font-family: verdana; color: rgb(0, 0, 153);"> <br> ------=_Part_451_5153339.1116337276994-- --===============1932842179== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ gdome mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gdome --===============1932842179==--