[root]/groovy/groovy-core/src/main/groovy/xml/streamingmarkupsupport
GROOVY-1383: make DOMBuilder attribute processing consistent with SaxBuilder
102 lines of code changed in:
Minor formatting correction
4 lines of code changed in:
Introduce the Entity class which allows named and numeric entities to be safely inserted into attributes and element bodies
18 lines of code changed in:
add more properties in Streaming Builders
namespaces << [x: "http://java.sun.com/xml/ns/j2ee"]
the same as mkp.declareNamespace [x: "http://java.sun.com/xml/ns/j2ee"]
comment << "hello"
the same as mkp.comment "hello"
pi << [pi: "pi value"
the same as mkp.pi [pi: "pi value"]
23 lines of code changed in:
Fix indentation
65 lines of code changed in:
Fix Groovy-1578
20 lines of code changed in:
Fix Groovy-1577
46 lines of code changed in:
Add mkp.xmlDeclaration
This causes an xml declaration or be emitted:
<?xml version="1.0" encoding="????"?>
The encoding is sniffed from the output stream if possible.
Otherwise it's set to US-ASCII
6 lines of code changed in:
GROOVY-1524 Further improvements and testcases for DOMCategory plus fixed up groovy.xml.dom.DOMTest
49 lines of code changed in:
Remove all @Property usage
6 lines of code changed in:
Pass the builder instance as the parameter to the markup closure.
So the parameter rather than the binding property can be used to qualify a tag where this is needed
def someThing = 0
def markup = { xml ->
xml.someThing { // emit <someThing>
1 lines of code changed in:
Allow the encoding used by StreamingMarkupBuilder to be set
def builder = new StreamingMarkupBuilder()
builder.encoding = "US-ASCII"
builder.bind {.......
markup closure bound to the markup builder will now be written out using US-ASCII no matter what encoding the Writer supports.
13 lines of code changed in:
get the name and alias the right way round when declaring an alias in a namespace
mkp.declareNamespace(dc: "http://purl.org/dc/elements/1.1/")
mkp.declareAlias(dc: myDate: "date"])
declaures that mYate is an alias for date in the namespace http://purl.org/dc/elements/1.1/
1 lines of code changed in:
Move XmlSlurper and the Streaming Builders out of the sandbox
561 lines of code changed in: