Ce contenu n'est pas disponible dans la langue sélectionnée.
12.30. org.milyn.delivery.sax.SAXElement
The
org.milyn.delivery.sax.SAXElement
will always contain attribute data associated with the targeted element, but will not contain the fragment child text data, whose SAX events ( SAXVisitChildren.onChildText
) occur between the SAXVisitBefore.visitBefore
and SAXVisitAfter.visitAfter
events. The text events are not accumulated on the SAXElement
because that could result in a significant performance drain. The downside to this is that if the SAXVisitor
implementation needs access to the text content of a fragment, you need to explicitly tell Smooks to accumulate text for the targeted fragment. This is done by calling the SAXElement.accumulateText
method from inside the SAXVisitBefore.visitBefore
method implementation of your SAXVisitor
.