Attributes can only work with either a prefixed qname or an empty ns name
AttributePath provides access to the parent XmlPath
AttributePaths provides all XPath Axe that are attribute relevant against a given collection of attributes on a colletion of XmlPaths
AttributePaths provides all XPath Axe that are attribute relevant against a given collection of attributes on a colletion of XmlPaths
[xpath.AttributePaths]
An AttributeQName is either a PrefixedQName or a NoNamespaceQName
An AttributeQName is either a PrefixedQName or a NoNamespaceQName
An alias for am immutable ListSet of Attribute
An alias for am immutable ListSet of Attribute
Might be tempting to use, but think twice, XOM removes it for a good reason, and I'm sorely tempted to, but I've worked with enough applications that really thought they needed it.
Mixed in to Prefixed and Unprefixed
Comments aren't escaped and will throw a CommentCannotBeEncoded error if the contents cannot be serialized, xalan just tries to serialize directly which can't work.
DTD is not part of the tree, nor a stream, it can only occur once and as such is neither an XmlEvent nor an XmlItem directly
Xml declaration
Tree based document
All documents look similar to this, even when stream
Provides a simple empty document for streams etc
Exists purely to satisfy staxs events and indicate to the client code that the xml "stack" should be popped
The information after the root elem
Alias for An XML ItemOrTree
Alias for An XML ItemOrTree
Misc is either a Comment or PI, and is used for the Prolog and trailing Misc items in a Doc.
Misc is either a Comment or PI, and is used for the Prolog and trailing Misc items in a Doc.
A collection of Misc
A collection of Misc
Represents a XML Namespace spec compliant Namespace.
Has neither a prefix nor a namespace (e.
Has both a namespace and a prefix (e.
Includes all information before the root elem
QNames together with a tree structure form the basis of XML, what type of QName is available depends on Attribute (either no namespace or prefxied - fully qualified) or Elem (attribute's options and non prefixed but still qualified)
Seperate the notion of a normal Namespace and that of the "empty namespace" - no default namespace
Has no prefix but a namespace (e.
XML Collection - an alias for ImmutableArrayProxy
XML Collection - an alias for ImmutableArrayProxy
XPath type, provides all XPath Axe against a given collection of XmlPaths
XPath type, provides all XPath Axe against a given collection of XmlPaths
[xpath.XPath]
Alias for a mutable builder of XmlChildren
Alias for a mutable builder of XmlChildren
Alias for the XmlTree CanBuildFrom
Alias for the XmlTree CanBuildFrom
An Alias for a collection of ItemOrElem, the children of a given tree node
An Alias for a collection of ItemOrElem, the children of a given tree node
Basis for typed pull api
An alias for a Path over XmlTree
An alias for a Path over XmlTree
Basis for xmlpulls, an Iterator[PullType]
Alias for Trees of Elem and XmlItem
Alias for Trees of Elem and XmlItem
Scales supports many aspects of Xml10 and Xml11, verification of serialization and values takes place with the XmlVersion ADT.
Creates DslBuilder instances
Creates OptionalDslBuilder instances.
Allows easy patterns for attribute values
Simple constructor for Attributes
Will match if the QNames are the same =:= and if the attributes are present (not requiring that these are the only attributes).
Will match if the QNames are the same =:= and if the attributes are present (not requiring that these are the only attributes). What is returned is either a Seq of attribute values or a simple boolean
Special case for empty namespaces
Default implementation for constructing an instance of XmlBuilder (ImmutableArrayProxyBuilder)
Default implementation for constructing an instance of XmlBuilder (ImmutableArrayProxyBuilder)
Adds a subtree to this given path and returns a path focussed on the new subtree.
Adds a subtree to this given path and returns a path focussed on the new subtree.
The Tree is constructed from the elem and optional children.
Adds a child to the given subpath, however focus remains on the newly modified path
Adds a child to the given subpath, however focus remains on the newly modified path
When the user really wants a stream source or there is yet another place that jaxp Source support is not complete.
When the user really wants a stream source or there is yet another place that jaxp Source support is not complete.
Returns a string version of the tree or throws
Returns a string version of the tree or throws
returns the attributes of a given element
returns the attributes of a given element
Compare the xml object via the available XmlDifference type class
Compare the xml object via the available XmlDifference type class
Compare the xml object via the available XmlDifference type class
Compare the xml object via the available XmlDifference type class
Perform an actual token comparison (Text/CData and Attribute value relevant).
Perform an actual token comparison (Text/CData and Attribute value relevant).
Conversion from Scala XML into Scales XML
Conversion from Scala XML into Scales XML
Same as fromXmlPathToXPath, an eager evaluation of xpath queries
Same as fromXmlPathToXPath, an eager evaluation of xpath queries
returns the Elem at this path
returns the Elem at this path
An empty collection of Attribute
An empty collection of Attribute
An empty collection of ItemOrElem
An empty collection of ItemOrElem
An empty collection of Misc
An empty collection of Misc
An empty Map of String -> String representing prefix -> namespace
An empty Map of String -> String representing prefix -> namespace
Placeholder - prefer serialize instead
Placeholder - prefer serialize instead
curried to allow direct drop in for predicates, if it is an item then it will return false
curried to allow direct drop in for predicates, if it is an item then it will return false
hasLocalName for AttributePaths
hasLocalName for AttributePaths
hasLocalName for XmlPaths
hasLocalName for XmlPaths
matches only the namespace
matches only the namespace
matches only the namespace
matches only the namespace
Will be true for all values of T except when the resulting QName is "empty".
Will be true for all values of T except when the resulting QName is "empty".
If hasQName is false then calling name will throw
Will be true for all values of T except when the resulting QName is "empty".
Will be true for all values of T except when the resulting QName is "empty".
If hasQName is false then calling name will throw
This package is not intended for direct usage, however it provides much of the functionality that is used throughout scales.
Returns true if the tree is effectively empty, i.
Returns true if the tree is effectively empty, i.e. no attributes or children
Matches on prefix and namespace only
Matches on prefix and namespace only
Does the qname match exactly (prefix included if present)
Does the qname match exactly (prefix included if present)
Tests if a given tree is nil, but does not check if children are present.
Tests if a given tree is nil, but does not check if children are present.
true if there is a xsi:nil="true" value (or 1)
Just for items, given we don't want to generally serialize them directly but as part of a tree.
Just for items, given we don't want to generally serialize them directly but as part of a tree. Useful for debugging only
Provides an optimised version of withIter(onDone(List(onQNames(path))))(enumXml(xml, _)) with default QName equality it unwraps the data providing an Iterator[XPath]
Provides an optimised version of withIter(onDone(List(onQNames(path))))(enumXml(xml, _)) with default QName equality it unwraps the data providing an Iterator[XPath]
Wraps XmlPull using default QName equality
Wraps XmlPull using default QName equality
Provides an optimised version of withIter(onDone(List(onQNames(path))))(enumXml(xml, _)) with an implicit parameter for QName equality it unwraps the data providing an Iterator[XPath]
Provides an optimised version of withIter(onDone(List(onQNames(path))))(enumXml(xml, _)) with an implicit parameter for QName equality it unwraps the data providing an Iterator[XPath]
Wraps XmlPull with an implicit parameter for QName equality
Wraps XmlPull with an implicit parameter for QName equality
This package provides string XPath evaluation based on the Jaxen library, sample use:
Joins adjacent text nodes for the immediate children only (make a tree more XPath friendly)
Joins adjacent text nodes for the immediate children only (make a tree more XPath friendly)
a) add / replace in mappings b) add to declMap
a) add / replace in mappings b) add to declMap
Normally the implicit fromXPathToIterable will provide sorted output, but this can create significant slow down when only the contents are necessary, not their order.
Normally the implicit fromXPathToIterable will provide sorted output, but this can create significant slow down when only the contents are necessary, not their order.
Use lazyRaw to convert without forcing sorting or checking for duplicates, and to evaluate lazily.
Warning, don't use this version of raw unless your XPath usage costs more than the navigation, its based on Stream and terribly slow (huge memory and stack usage etc).
NOTEs Laziness with flatten is achieved by using iterator.toIterable before the flatten (uses Stream internally). Its only useful as a lazy evaluator if viewed was used.
Use a custom parserPool to control the sax factory features
Use a custom parserPool to control the sax factory features
Use a custom parserPool to control the sax factory features
Use a custom parserPool to control the sax factory features
Returns the localName
Returns the localName
Returns the localName
Returns the localName
Joins adjacent text nodes for immediate children
Joins adjacent text nodes for immediate children
Returns the QName, will throw if the QName is "empty"
Returns the QName, will throw if the QName is "empty"
Returns the QName, will throw if the QName is "empty"
Returns the QName, will throw if the QName is "empty"
Returns the underlying namespace object
Returns the underlying namespace object
XPath namespace-uri function, returns the uri
XPath namespace-uri function, returns the uri
XPath namespace-uri function, returns the uri
XPath namespace-uri function, returns the uri
Use to signify a "null object", tree/path shouldn't work like this its a smell
Use to signify a "null object", tree/path shouldn't work like this its a smell
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
XPath normalize-space function, replaces all consecutive whitespace with " " and trims.
Collects all data belonging to an element that matches the list.
Collects all data belonging to an element that matches the list. <top><middle><ofInterest> content </ofInterest><ofInterest.... onQNames(List("top"l, "middle"l, "ofInterest"l)) would return an iteratee that returned every <ofInterest> content </ofInterest> as a path (each parent node containing only one child node).
Uses the default QName equality
Collects all data belonging to an element that matches the list.
Collects all data belonging to an element that matches the list. <top><middle><ofInterest> content </ofInterest><ofInterest.... onQNames(List("top"l, "middle"l, "ofInterest"l)) would return an iteratee that returned every <ofInterest> content </ofInterest> as a path (each parent node containing only one child node).
Uses an implicit QName equality
Similar to pathMatcher but also gives the tree back into the pattern match.
Similar to pathMatcher but also gives the tree back into the pattern match.
Creates a booleanMatcher against a Tree based on the @pathEval function.
Creates a booleanMatcher against a Tree based on the @pathEval function.
For XPath evaluations on the tree this typically gives the paths back when the xpath evaluates to a non-empty result. TODO ADD CODE
Returns either qualifiedName or prefix:{namespace}local when a prefix is present
Returns either qualifiedName or prefix:{namespace}local when a prefix is present
Returns either qualifiedName or prefix:{namespace}local when a prefix is present
Returns either qualifiedName or prefix:{namespace}local when a prefix is present
Prints to stdout, useful for testing etc Will dump an error if one is found.
Prints to stdout, useful for testing etc Will dump an error if one is found.
Note it outputs to the vmDefaultCharset so it should always be C+P able
Creates a new XmlPull based on source.
Creates a new XmlPull based on source. By default it will close the stream after use.
Load xml via pull parsing
Load xml via pull parsing
Allows plugging in other feeds, non source based, as such not closeable
Allows plugging in other feeds, non source based, as such not closeable
Creates a new XmlPull based on source for direct handling of the stream.
Creates a new XmlPull based on source for direct handling of the stream. Note to close the stream you must bracket. The individual XmlPull will be closed after the document end but the stream will remain open
Returns an Iteratee that can serialize PullTypes to out.
Returns an Iteratee that can serialize PullTypes to out. The serializer factory management is automatically handled upon calling with eof. This can be triggered earlier by calling closeResource on the returned CloseOnNeed.
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Returns the XPath QName - prefix:local or local
Allows comparison of Text nodes or Attribute values that contain QNames, i.
Allows comparison of Text nodes or Attribute values that contain QNames, i.e. prefix:value. In order to perform this comparison both the left and right sides must have a NamespaceContext.
Returns the qualified name {namespace}local
Returns the qualified name {namespace}local
Returns the qualified name {namespace}local
Returns the qualified name {namespace}local
Normally the implicit fromXPathToIterable will provide sorted output, but this can create significant slow down when only the contents are necessary, not their order.
Normally the implicit fromXPathToIterable will provide sorted output, but this can create significant slow down when only the contents are necessary, not their order.
Use raw to convert without forcing sorting or checking for duplicates.
NOTE Any laziness aquired by viewed will also be lost by the flatten
Serializes items which can behave like xml.
Serializes items which can behave like xml.
The serializer will be returned automatically to the pool by calling closer
The serializer will be returned automatically to the pool by calling closer
doc functions are only evaluated upon the first elem / last elem
Skips all events until the indexes match downTo, can be seen as \*\*[b]\*[c] skipping until c with skip(List(b,c)).
Skips all events until the indexes match downTo, can be seen as \*\*[b]\*[c] skipping until c with skip(List(b,c)). This can be used, for example, to identify qnames within a message and combined with capture to allow replaying. Identifying a soap doc-lit request would be skip(List(2,1)). It returns the XmlPath to the skipped position, for soap /Envelope/Body/Request but does not collect the contents of that node. An empty list will simply return the first Element found.
Provides proxied sources to the pull parsers, the stream provided is the stream used
Provides proxied sources to the pull parsers, the stream provided is the stream used
XPath name for text
XPath name for text
XPath name for text
XPath name for text
The text value of a given object, .
The text value of a given object, .value for attributes & items, the accumalated text if its an elem
The text value of a given object, .
The text value of a given object, .value for attributes & items, the accumalated text if its an elem
Attempts to convert a stream to a tree
Attempts to convert a stream to a tree
More readable version for XmlItems and Attributes, same as text
More readable version for XmlItems and Attributes, same as text
More readable version for XmlItems and Attributes, same as text
More readable version for XmlItems and Attributes, same as text
Lazy evaluation of XPaths
Lazy evaluation of XPaths
View called on nested Lists, but not on xlmPath.
Writes the xml to a given Writer with defaults provided for .
Writes the xml to a given Writer with defaults provided for .
A convenient AttributeQName for xsi:nil attributes
A convenient AttributeQName for xsi:nil attributes