开发者

How to extract web page HTML data into XML with 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜