biweekly.property
Class Xml
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.ValuedProperty<Document>
biweekly.property.Xml
public class Xml
- extends ValuedProperty<Document>
Used for storing properties parsed from xCal documents whose XML namespaces
are not part of the xCal XML namespace.
Examples:
//creating a new property
Xml xml = new Xml("<company xmlns=\"http://example.com\"><ceo>John Doe</ceo><name>Acme Co</name></company>");
//getting the parsed DOM
org.w3c.dom.Document document = xml.getValue();
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 6321 p.17-8
Constructor Summary |
Xml(Document document)
Creates an XML property. |
Xml(Element element)
Creates an XML property. |
Xml(String xml)
Creates an XML property. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xml
public Xml(String xml)
throws SAXException
- Creates an XML property.
- Parameters:
xml
- the XML to use as the property's value
- Throws:
SAXException
- if the XML cannot be parsed
Xml
public Xml(Element element)
- Creates an XML property.
- Parameters:
element
- the XML element to use as the property's value (the
element is imported into an empty Document
object)
Xml
public Xml(Document document)
- Creates an XML property.
- Parameters:
document
- the XML document to use as the property's value
Copyright © 2013 Michael Angstadt. All Rights Reserved.