API version 1

- ‐

R

CRS::Common::Core::XmlNode

parentNode

親のノードを示します。

親を持たないノードの場合無効なXmlNodeオブジェクトとなります。



使用例 CRSダウンロード

Form Xmlnode_03{
   x = 0;
   y = 0;
   width = 800;
   height = 600;

   var xm = new XmlDocument();
   xm <<  xml  <<-
   <?xml version="1.0"?>
   <root>
           <AB>
                   <integer>1</integer>
                   <string>text</string>
                   <number>1.5</number>
           </AB>
           <CD attr="attribute">text with attribute</CD>
           <EF>text only</EF>
   </root>
   ->> ;

   var orgnode = xm.documentElement.firstChild;
   print( " nodeisvalid = ",orgnode.isValid ) ;
   print( "    lastChild = ",orgnode.lastChild ) ;
   print(" localName     ",orgnode.localName) ;
   print("namespaceURI",orgnode.namespaceURI) ;
   print("        next      ",orgnode.nextSibling) ;
   print("   node Name  ",orgnode.nodeName) ;
   print("     node type  ",orgnode.nodeType) ;
   print("     nodeValue ",orgnode.nodeValue) ;
   print("ownerDocume ",orgnode.ownerDocument) ;
   print("parentNode     ",orgnode.parentNode) ;
   print("            prefix ",orgnode.prefix) ;
   print("previousSibling",orgnode.previousSibling) ;
   print("    xml           ",orgnode.xml) ;
}