开发者

How to extract web page HTML data into XML with javascript?

开发者 https://www.devze.com 2023-02-02 06:02 出处:网络
I have a static HTML page with a form. I want to extract data from text box or use the data in XML into textbox with t开发者_StackOverflow社区he help of javascript.

I have a static HTML page with a form. I want to extract data from text box or use the data in XML into textbox with t开发者_StackOverflow社区he help of javascript.

Will appreciate any help or pointers.


Here are tutorials 1, 2 .

(new XMLSerializer()).serializeToString(xmlNode) ;


Use a DOM. Look up examples on w3schools.


you can use usefull jquery function .map() and serialize()

edit:to write xml with javascript [http://www.codeproject.com/KB/ajax/XMLWriter.aspx]

0

精彩评论

暂无评论...
验证码 换一张
取 消