IT Community - Software Programming, Web Development and Technical Support

XML parsing properties and Methods in Javascript

This is a discussion on XML parsing properties and Methods in Javascript within the PHP Programming forums, part of the Web Development category; hi, Using below properties and methods we have to manipulate the xml data as we expected.. Properties • attributes returns an ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > PHP Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-08-2007, 03:16 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default XML parsing properties and Methods in Javascript

hi,
Using below properties and methods we have to manipulate the xml data as we expected..

Properties
• attributes
returns an array of objects. An object in this array has the name and value property.
• baseName [ie]
• childNodes
• dataType [ie]
• definition [ie]
• firstChild
• lastChild
• namespaceURI [ie]
• nodeName
• nodeType
Can be
1: Element
2: Attribute
3: Text
4: CDATA Section
5: Entity Reference
6: Entity
7: Processing Instruction
8: Comment
9: Document
10: Document Type
11: Document Fragment
12: Notation
• nodeTypedValue [ie]
• nodeTypeString [ie]
• nodeValue

• ownerDocument
• parentNode
• parsed [ie]
• prefix
• previousSibling [ie]
• specified [ie]
• text [ie]
• xml [ie]

Methods
• appendChild (tagName)
• cloneNode (deep )
If deep is true, the children and children's children are cloned as well.
• hasChildNodes ()
• insertBefore (newChild, refChild)
• removeChild (child)
• replaceChild (newChild, oldChild)
• selectNodes [ie] (patternString)
Returns a list of nodes.
For example:
xmlDoc.setProperty("SelectionNamespaces", "xmlns:xsl='http://www.w3.org/1999/XSL/Transform'");
xmlDoc.setProperty("SelectionLanguage", "XPath");
objNodeList = xmlDoc.documentElement.selectNodes("//xsl:template");
• selectSingleNode [ie] (patternString)
• transformNode [ie] (stylesheet)
• transformNodeToObject [ie] (stylesheet, outputObject)
__________________
With,
J. Jeyaseelan

Everything Possible
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
file parsing in php venkatbi PHP Programming 0 11-14-2007 04:38 AM
Properties of Anthem DataGrid shaalini ASP and ASP.NET Programming 4 08-30-2007 08:12 AM
XML Parsing in PHP jegan PHP Programming 12 08-20-2007 11:32 PM
How to change the checkBox properties, which is inside nested Repeater/Grid kingmaker C# Programming 2 08-10-2007 12:28 AM
How we know browser properties? devarajan.v PHP Programming 1 07-27-2007 03:36 AM


All times are GMT -7. The time now is 01:12 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0