|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.xml.XMLUtils
XML utility methods.
Constructor Summary | |
XMLUtils()
|
Method Summary | |
static XMLConsumer |
getConsumer(org.xml.sax.ContentHandler ch)
Get an XMLConsumer from ContentHandler . |
static XMLConsumer |
getConsumer(org.xml.sax.ContentHandler ch,
org.xml.sax.ext.LexicalHandler lh)
Get an XMLConsumer from a ContentHandler and
a LexicalHandler . |
static void |
stripDuplicateAttributes(org.w3c.dom.Node node,
org.w3c.dom.Node parent)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLUtils()
Method Detail |
public static void stripDuplicateAttributes(org.w3c.dom.Node node, org.w3c.dom.Node parent)
public static XMLConsumer getConsumer(org.xml.sax.ContentHandler ch, org.xml.sax.ext.LexicalHandler lh)
XMLConsumer
from a ContentHandler
and
a LexicalHandler
. If the content handler is already an
XMLConsumer
, it is returned as is, otherwise it is wrapped
in an XMLConsumer
with the lexical handler.ch
- the content handler, which should not be null
lh
- the lexical handler, which can be null
XMLConsumer
for ch
an lh
public static XMLConsumer getConsumer(org.xml.sax.ContentHandler ch)
XMLConsumer
from ContentHandler
. If the
content handler is already an XMLConsumer
, it is returned as
is, otherwise it is wrapped in an XMLConsumer
.ch
- the content handler, which should not be null
XMLConsumer
for ch
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |