i*****t 发帖数: 220 | 1 Use jaxp dom to create a XML file:
in an element, if what I want to include is an integer, what should I do? What
a document can create is only test node (string). So do I have to do like
this:
element.appendChild( document.createTextNode(intNum.toString());
when paring it, I have to use Integer.parseInt(string)?
Thanks. | m******o 发帖数: 33 | 2 yes.. only plain text in xml.
【在 i*****t 的大作中提到】 : Use jaxp dom to create a XML file: : in an element, if what I want to include is an integer, what should I do? What : a document can create is only test node (string). So do I have to do like : this: : element.appendChild( document.createTextNode(intNum.toString()); : when paring it, I have to use Integer.parseInt(string)? : Thanks.
| i*****t 发帖数: 220 | 3 thanks dude!
What
【在 m******o 的大作中提到】 : yes.. only plain text in xml.
|
|