endElement in XmlCursor??

2008-02-27 Thread dave

I see beginElement here. How do you end an Element
when you're trying to construct an XML instance?


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: endElement in XmlCursor??

2008-02-27 Thread dave

for e.g. am trying to construct a simple example below
using XmlCursor:
  root
a b=x/
z ver=4
  d test=yes
e/
  /d
/z
  /root

I could only use push/pop along with other regular
apis to construct this instance using Cursor. Push/Pop
for each element construction looks too verbose (
push/beginElement/insertAttr/pop like sequence).

Is there any efficient way? sample code would help.
by the way, am trying XmlCursor for the first time
now.

-D

--- dave [EMAIL PROTECTED] wrote:

 
 I see beginElement here. How do you end an Element
 when you're trying to construct an XML instance?


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



xs:string - Isn't whitespaces preserved by default?

2008-02-27 Thread dave

I have an xs:string type element to hold some regex
expressions. I haven't put any restrictions/facets for
this xs:string type. Isn't by default, it should
preserve whitespace? Looks like the leading and
trailing spaces are removed when I generate an XML
using XmlBeans apis.

In general, what is the better XSD data type to hold
regex patterns? Is it just xs:string OR should I
explicitly preserve Whitespace for this xs:string?


  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: xs:string - Isn't whitespaces preserved by default?

2008-02-27 Thread Jacob Danner
How are you generating the XML. I'm not positive its whitespace is
preserved if something like xmlText() is used.
I might try something like an xs:normalizedString and the whitespace=preserve.
-jacobd

On Wed, Feb 27, 2008 at 4:57 PM, dave [EMAIL PROTECTED] wrote:

  I have an xs:string type element to hold some regex
  expressions. I haven't put any restrictions/facets for
  this xs:string type. Isn't by default, it should
  preserve whitespace? Looks like the leading and
  trailing spaces are removed when I generate an XML
  using XmlBeans apis.

  In general, what is the better XSD data type to hold
  regex patterns? Is it just xs:string OR should I
  explicitly preserve Whitespace for this xs:string?


   
 
  Be a better friend, newshound, and
  know-it-all with Yahoo! Mobile.  Try it now.  
 http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





-- 
I'm competing in a Half-Ironman distance triathlon to raise money for
the fight against cancer!
Please help support my efforts by going to:
http://www.active.com/donate/tntwaak/jacobd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]