Re: removing nil tags from response

2009-06-18 Thread Krishna Gopal Binyala
Hello Jeff, Thanks for reply. The code works fine with small correction . cursor.removeXml() ; cursor.toPrevToken(); // to be added // if the toPrevToken() is not used, it will not remove two consecutive nil elements. // because removeXml() will set the cu

Re: removing nil tags from response

2009-06-18 Thread Jeff Lusted
Hi Krishna! On Thu, 2009-06-18 at 18:15 +0530, Krishna Gopal Binyala wrote: > I am using XMLBeans 2.2.0 for data binding in my web service; i.e. > request and response. > > If for some of the values in my response are null/ nil.. the response > tag is coming as > > xmlns:xsi="http://www.w3.org

removing nil tags from response

2009-06-18 Thread Krishna Gopal Binyala
Hello, I am using XMLBeans 2.2.0 for data binding in my web service; i.e. request and response. If for some of the values in my response are null/ nil.. the response tag is coming as http://www.w3.org/2001/XMLSchema-instance"/> i don't want these nil value. the "Data" element is defined as

handling empty tags while serializing XML files

2009-03-31 Thread Meer Zakir Hussain
Hello Everyone, I am having a problem regarding handling of empty tags, when i serialize the xml file using xmlbeans: Example: Before serialization with XMLBeans: After serilalization of the file with XMLBeans: Is there any way that i can control handling of empty tags, i.e whether to close

RE: Tags

2008-07-02 Thread Henry Barnett
they already are. Could you tell me if it is ok by xmlbeans standard that they have to use the first of the two? Regards, Henry -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: 02 July 2008 16:53 To: user@xmlbeans.apache.org Subject: Re: Tags It doesn't exactly

Re: Tags

2008-07-02 Thread Jacob Danner
It doesn't exactly work like that. The xsi:type is there to assert its an elements type, but it does not mean two elements are then equivalent only that they should conform to the type defined by the schema. The element names are the key here. If you are using XMLBeans and you want your FpML docum

Tags

2008-07-02 Thread Henry Barnett
Hi, I'm working with FpML and I'm not very knowledgeable about xml when it comes to standards and what is allowed and was hoping if you guy could answer a quick question I have. I have a message as follows ... Which fails validation because xmlbeans expects ... Is the first instance valid co

Re: using count() for counting tags with a particular value

2007-07-11 Thread Jacob Danner
bble.com/using-count%28%29--for-counting-tags-with-a-particular-value-tf4060347.html#a11535550 Sent from the Xml Beans - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

using count() for counting tags with a particular value

2007-07-11 Thread unni_varun
, i need the output as 5 because ABC appears 5 times. Please give ur comments. thanks in anticipation Varun -- View this message in context: http://www.nabble.com/using-count%28%29--for-counting-tags-with-a-particular-value-tf4060347.html#a11535550 Sent from the Xml Beans - User mailing list

How do I format empty tags in the old format?

2006-08-15 Thread johnpaul mejorada
Hi. I am new to XMLBeans and was wondering if anyone knew how I can save an XMLBean document so that the empty elements are in the old format: instead of: The reason I ask is that Im trying to pass data into a parser of a legacy system, and it does not like the new format of empty tags

Prevent xml-fragment tags being returned from header

2005-10-06 Thread Beagan, Patrick
Newbie question: I am trying to get the value from the header from xml shown below. When I do a : root.getHeader().getName(); I get back myname rather than the desired 'myname'. I wrote a simple string function to strip off the fragment tags but it seems like I shouldn't have