|
| <prev next> |
Re: Java XML : The Sum of all nightmares!!: msg#00040java.helma.antville.user
Hi, Vinicius. "Vinicius Carvalho" <java.vinicius@xxxxxxxxx> wrote on 2007-10-31 08:58:46 AM: > It works fine. But, when I run a test case from outside the container, > passing a xml that was created from a different document builder then > the one inside jboss (all transformers fail to transform) they simply > drop all tags from the xml. > > I've already have a problem with validation and Xalan because of using > diferent document builders. I just can't understand why 2 xml files > that are identical are treated differently from the parser. The scenarios you've described are pretty sketchy, so it's difficult to tell what might be going wrong. When you mention document builders, are you speaking specifically about javax.xml.parsers.DocumentBuilder? If so, do the documents involved have namespace declarations with elements in the document being in those namespaces? If so, is it possible that in one scenario the DocumentBuilder was namespace-aware and in the other it was not? If that's the case, you can create a namespace-aware DocumentBuilder by invoking the DocumentBuilderFactory.setNamespaceAware method with a true value as the argument. Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XSLT Processors Development IBM SWS Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:zongaro@xxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Java XML : The Sum of all nightmares!!, Vinicius Carvalho |
|---|---|
| Previous by Thread: | Java XML : The Sum of all nightmares!!, Vinicius Carvalho |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |