Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#774 closed enhancement (wontfix)

Support for generic xml document

Reported by: sa.cesare@… 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 13 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 13 years ago by sa.cesare@…

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 13 years ago by sa.cesare@…

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 13 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:

  $("<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.

Note: See TracTickets for help on using tickets.