Skip to main content

Bug Tracker

Side navigation

#774 closed enhancement (wontfix)

Opened January 10, 2007 05:39PM UTC

Closed March 24, 2007 03:31AM UTC

Last modified June 21, 2007 04:55AM UTC

Support for generic xml document

Reported by: sa.cesare@gmail.com 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.

Attachments (0)
Change History (4)

Changed January 10, 2007 06:21PM UTC by john comment:1

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.

Changed January 11, 2007 08:55AM UTC by sa.cesare@gm comment:2

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.

Changed January 11, 2007 09:05AM UTC by sa.cesare@gm comment:3

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.

Changed March 24, 2007 03:31AM UTC by john comment:4

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.