Re: [dom4j-user] detecting self-closed tags
I stand corrected :) Muzaffer From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ozakca, Muzaffer Sent: Monday, August 25, 2008 11:05 AM To: Dhanji R. Prasanna; dom4j-user Subject: Re: [dom4j-user] detecting self-closed tags Dhanji, I’m not sure if have gotten private replies to your questions but to me, this e-mail list looks dead. Many questions* go unanswered (unless of course they are answered off list – but that’s not the common practice I observed on many lists. many). I really like Dom4j and I use it for almost everything XML related but it might get really frustrating if you are doing something that is not documented well. There’s not much help you can get in that case… Anyways, I wanted to voice that here… * Most of the questions that get a reply are answered by Edwin Dankert, I noticed. Muzaffer From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dhanji R. Prasanna Sent: Friday, August 22, 2008 9:31 PM To: dom4j-user Subject: [dom4j-user] detecting self-closed tags Hi I'm using dom4j to parse an XML template and then render it back out as XML after some transformation work. It is important that I be able to preserve tags that are *not* self-closed even if they have no nested content. For example: Is there any way to detect if a tag is self-closed from the dom4j Element interface? Thanks, Dhanji. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user
Re: [dom4j-user] detecting self-closed tags
Hi, there is no way how to detect if a tag was self-closed in source form. There is no difference between and in XML. You probably need this for XHTML which (for compatibility with HTML) distinguish between these two forms. If it is this case you can use org.dom4j.io.HTMLWriter class, which knows which tags should be written in short form and which in long form. Sincerely, Filip Jirsák 2008/8/23 Dhanji R. Prasanna <[EMAIL PROTECTED]>: > Hi > I'm using dom4j to parse an XML template and then render it back out as XML > after some transformation work. It is important that I be able to preserve > tags that are *not* self-closed even if they have no nested content. For > example: > > Is there any way to detect if a tag is self-closed from the dom4j Element > interface? > Thanks, > Dhanji. > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > dom4j-user mailing list > dom4j-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/dom4j-user > > -- Filip Jirsák [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user
Re: [dom4j-user] detecting self-closed tags
Dhanji, I’m not sure if have gotten private replies to your questions but to me, this e-mail list looks dead. Many questions* go unanswered (unless of course they are answered off list – but that’s not the common practice I observed on many lists. many). I really like Dom4j and I use it for almost everything XML related but it might get really frustrating if you are doing something that is not documented well. There’s not much help you can get in that case… Anyways, I wanted to voice that here… * Most of the questions that get a reply are answered by Edwin Dankert, I noticed. Muzaffer From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dhanji R. Prasanna Sent: Friday, August 22, 2008 9:31 PM To: dom4j-user Subject: [dom4j-user] detecting self-closed tags Hi I'm using dom4j to parse an XML template and then render it back out as XML after some transformation work. It is important that I be able to preserve tags that are *not* self-closed even if they have no nested content. For example: Is there any way to detect if a tag is self-closed from the dom4j Element interface? Thanks, Dhanji. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ dom4j-user mailing list dom4j-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dom4j-user