You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  1. Adding xml to an XMLList also does the equivalent of: XMLList[index-1].parent.insertChildAfter( XMLList[index-1]).

  2. Removing objects from the XML which is used to create an XMLList does NOT change the objects in the XML.

  3. If you have two XMLLists which reference the same structure in an XML object, changing one DOES NOT change the other.

  4. XML.attribute(“foo”) returns a weird XML object which just has the value of the specified key. Using parent() on that object does return the full XML object which the attribute belongs to.

  5. I’m not sure how to get “comment” or “processing-instruction” nodeKinds. Some quick tests did not return anything for those. I’d like to get some test cases to see how those behave.

  6. xml.*.(@name=="fred") causes an error if any xml elements do not have the attribute set, but xml.*.(attribute("name")=="fred") will work even if some nodes do not have the attribute.

  7. A convenient way to get all nodes which have a specific attribute defined is this: newList = xmlList.(attribute("name").length());

  • No labels