|
RE: problem in creating DOMDocuments: msg#00105text.xml.xerces-c.user
Alexis, You need to parse the document then add whatever you want. See the parsing examples. -----Original Message----- From: Alexis Blaze [mailto:lyoneil_de_sire@xxxxxxxxx] Sent: Thursday, December 28, 2006 11:38 AM To: c-users@xxxxxxxxxxxxxxxxx Subject: problem in creating DOMDocuments I have some experience with XML in javascript and java, but i'm new at xerces... i want to create a DOMDocument from a XMLTemplate... an example of the template will look like this... --------------------------------- <resource id="" type=""> <judul/> <pengarang/> <keywords/> <hak-akses/> <bahasa/> <metadata/> </resource> ----------------------------------- as you can see, all the tag are empty, so ii will used the DOMDocument to fill in the textContent.... the problem is, i don't know how to load the template into the DOMDocument... I have read the CreateDOMDocument sample, but it create DOMDocument from scratch... unlike what i want...in java script, all that i need to do is ------------------------ xmlStr = "<resource id='' type=''><judul/><pengarang/><keywords/><hak-akses/><bahasa/><metadata/>< /resource>"; doc.load(xmlStr); <--- this will load the xmlStr into DOMDocument... ------------------------ is there any way to do this?? thank for your help.... -- View this message in context: http://www.nabble.com/problem-in-creating-DOMDocuments-tf2891037.html#a8 076750 Sent from the Xerces - C - Users mailing list archive at Nabble.com. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | problem in creating DOMDocuments: 00105, Alexis Blaze |
|---|---|
| Next by Date: | Re: Build problem on HPUX-11, Itanium processor: 00105, Ivan Pechorin |
| Previous by Thread: | problem in creating DOMDocumentsi: 00105, Alexis Blaze |
| Next by Thread: | RE: problem in creating DOMDocuments: 00105, Alexis Blaze |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |