To programmatically create a new element, you can declare an XmlElement variable. To add the new element to the file, the XmlDocument class provides the CreateElement() method that is overloaded with three versions. One of the versions uses the following syntax: public XmlElement CreateElement(st
Tag: JSON / JAVA / XML
Integrate XForms with the Google Web Toolkit, Part 3: Using GWT to create XForms
(Michael Galpin) This four-part series demonstrates how to use the Google Web Toolkit (GWT) and XForms together to create a dynamic Web application. Part 1 looked at the two technologies and how both had JavaScript underpinnings. Part 2 shows how to create a small application with two pages. One pag
Writing XML Data
(Jim Mischel) The XmlWriter output model is quite simple. For example, to write an element, you open the element by calling WriteStartElement, write any attributes or nested elements, and then close the element by calling WriteEndElement.
Simple parsing of space-separated attributes in XPath/XSLT
(Micah Dubinko) It’s a common need to parse space-separated attribute values from XPath/XSLT 1.0, usually @class or @rel. One common (but incorrect) technique is simple equality test, as in {@class=”vcard”}. This is wrong, since the value can still match and still have other literal values, like “fo
Using RELAX NG For data integration
(Ed Tittel) In a tip I wrote almost one year ago entitled Relax NG, the XML Schema Alternative, I explained why companies or individuals might want to mess with this powerful schema language, even in the face of a set of formal W3C XML Schema recommendations. (R)
XML and Java technology: A return to basics
(Brett D. McLaughlin, Sr.) I’ve written numerous articles and books on XML and XML-related topics by now, and as I spent a little time looking back over them, I was surprised at what I found. Even though I’m a programmer, and have always preferred to get into the bits and bytes (I took assembly in c
Creating an XML Writer
(Jim Mischel) To create an XmlWriter object instance, you call the static XmlWriter.Create method, passing it the stream or other data store to which you want to write, and an optional XmlWriterSettings object that specifies how you want the writer to behave. Overloads of the Create method let you s
DOM Trees
(ibuckley) What is the DOM? With JavaScript you can restructure an entire HTML document. You can add, remove, change, or reorder items on a page.
How to harness the power of XHTML and XForms in your .NET applications
(Phil Booth) XForms is an important recommendation from the W3C that enables complex XML-handling applications to be defined in a simple, declarative syntax. This article demonstrates how you can harness this technology in your own C# applications. However, the same techniques may be easily applied
XML-Enabled Applications – Part 4
(Yuli Vasiliev) Another variation on accessing and manipulating XML content stored in Oracle database is provided by Oracle XML DB repository, which is an essential component of Oracle XML DB.
