#774 closed enhancement (wontfix)
Support for generic xml document
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | core | Version: | |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Thanks.
Change History (4)
comment:1 Changed 16 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 16 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
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
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
Milestone: | 1.1.3 |
---|---|
Resolution: | → wontfix |
Status: | reopened → closed |
Version: | 1.1a |
Currently, the closest the what you want to achieve would be something like this:
$("<doc/>").append("<aaa/>");
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.
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.