in reply to Re^2: XML::Compile template initialized from XML document
in thread XML::Compile template initialized from XML document
Be sure that you create the ::Schema (better the ::Cache) only once in your program, and reuse it. The same for your compiled handlers: compilation is expensive, (re)use is cheap.
Probably you want to use $xmltxt = $msg->decoded_content
Apparently, your schema uses mixed="true". When that is not a mistake (which it often is), than you have to do things partially manually. XHTML is an example of mixed XML: it does not translate into a predictable DOM tree. Tune the handling of mixed elements to suit your needs via the mixed_elements parameter.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XML::Compile template initialized from XML document
by tdane (Acolyte) on May 12, 2016 at 15:07 UTC | |
|
Re^4: XML::Compile template initialized from XML document
by tdane (Acolyte) on May 12, 2016 at 19:24 UTC | |
by tdane (Acolyte) on May 12, 2016 at 21:08 UTC | |
by markov (Scribe) on May 12, 2016 at 23:12 UTC |