Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#774 closed enhancement (wontfix)

Support for generic xml document

Reported by: [email protected] Owned by:
Priority: minor Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:


I would be nice to have generic xml document support,some kind of wrapper for http://www.webreference.com/programming/javascript/definitive2/index.html,same as xmlhttprequest/ajax object.


Change History (4)

comment:1 Changed 16 years ago by john

Resolution: worksforme
Status: newclosed

We have that right now - just pass in the XML document to jQuery, like so: $( xmlDocument ). You can then do methods against it, like .find(), etc.

comment:2 Changed 16 years ago by [email protected]

Resolution: worksforme
Status: closedreopened

You don't understand me,I need to use it as create*(element/comment etc.) factory,if I try $("<doc/>").createElement("aaa"); -it dosen't work,ideally I want empty "document" object but in xml context.

comment:3 Changed 16 years ago by [email protected]

By the way,you can use something like $.xml() with url to load initial document from or string to parse,see loadXML(),load() from reference on Msxml2.DOMDocument.

comment:4 Changed 16 years ago by john

Milestone: 1.1.3
Resolution: wontfix
Status: reopenedclosed
Version: 1.1a

Currently, the closest the what you want to achieve would be something like this:


This is going to have to do for now, as jQuery is designed to support the creation, or handling, of DOM Documents; it focuses on DOM Elements instead.

Note: See TracTickets for help on using tickets.