You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by tom john <cy...@yahoo.com> on 2002/05/02 10:45:03 UTC
Re: How to serialize Text or Attribute node.
what do you mean "by hand" ?
--- Eric_Schwarzenbach@Classwell.com wrote:
>
> Given how simple the data in attribute and text
> nodes are, it would only
> take a few lines of code to serialize them "by
> hand."
>
>
>
>
>
>
>
> tom john
>
>
> <cybernv@yahoo.c To:
> xerces-j-user@xml.apache.org
>
> om> cc:
>
>
>
> Subject: How to serialize Text or Attribute node.
>
> 04/26/2002 04:25
>
>
> AM
>
>
> Please respond
>
>
> to xerces-j-user
>
>
>
>
>
>
>
>
>
>
>
> hi,
> i am using 'org.apache.xml.serialize.XMLSerializer'
> to
> serialize xml documents. I can easily serialize xml
> document or elements.. but i now i need to serialize
> any results i get using xpath statements (XPathAPI).
> the results are all nodes but can be a 'text node'
> or
> 'attribute node' etc.. as well. i cannot cast these
> as
> an Element.
>
> serializer.serialize((Element)node);
>
> is there a solution??
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Games - play chess, backgammon, pool and more
> http://games.yahoo.com/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>
>
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: How to serialize Text or Attribute node.
Posted by tom john <cy...@yahoo.com>.
thanks, but dont know how... can you give me a hint
how?
thanks
--- Xuemin Guan <xu...@appresso.com> wrote:
> code the process of serializing yourself.
>
> tom john wrote:
>
> > what do you mean "by hand" ?
> >
> > --- Eric_Schwarzenbach@Classwell.com wrote:
> >
> >>Given how simple the data in attribute and text
> >>nodes are, it would only
> >>take a few lines of code to serialize them "by
> >>hand."
> >>
> >>
> >>
> >>
> >>
>
> >>
>
> >>
> >> tom john
>
> >>
>
> >>
> >> <cybernv@yahoo.c To:
>
> >> xerces-j-user@xml.apache.org
>
> >>
> >> om> cc:
>
> >>
>
> >>
> >>
> >>Subject: How to serialize Text or Attribute node.
>
> >>
> >> 04/26/2002 04:25
>
> >>
>
> >>
> >> AM
>
> >>
>
> >>
> >> Please respond
>
> >>
>
> >>
> >> to xerces-j-user
>
> >>
>
> >>
> >>
>
> >>
>
> >>
> >>
>
> >>
>
> >>
> >>
> >>
> >>
> >>hi,
> >>i am using
> 'org.apache.xml.serialize.XMLSerializer'
> >>to
> >>serialize xml documents. I can easily serialize
> xml
> >>document or elements.. but i now i need to
> serialize
> >>any results i get using xpath statements
> (XPathAPI).
> >>the results are all nodes but can be a 'text node'
> >>or
> >>'attribute node' etc.. as well. i cannot cast
> these
> >>as
> >>an Element.
> >>
> >>serializer.serialize((Element)node);
> >>
> >>is there a solution??
> >>
> >>
> >>__________________________________________________
> >>Do You Yahoo!?
> >>Yahoo! Games - play chess, backgammon, pool and
> more
> >>http://games.yahoo.com/
> >>
> >>
> >>
> >
>
---------------------------------------------------------------------
> >
> >>To unsubscribe, e-mail:
> >>xerces-j-user-unsubscribe@xml.apache.org
> >>For additional commands, e-mail:
> >>xerces-j-user-help@xml.apache.org
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >
>
---------------------------------------------------------------------
> >
> >>To unsubscribe, e-mail:
> >>xerces-j-user-unsubscribe@xml.apache.org
> >>For additional commands, e-mail:
> >>xerces-j-user-help@xml.apache.org
> >>
> >>
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Health - your guide to health and wellness
> > http://health.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> > For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
> >
> >
> >
> >
>
>
> --
> Xuemin Guan
> Software Engineer
> Appresso SpA (www.appresso.com)
> Tel: +81-3-4412-7790(Direct)
> +81-3-4412-7700(Represent)
> Email: xuemin@appresso.com
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> xerces-j-user-help@xml.apache.org
>
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: How to serialize Text or Attribute node.
Posted by Xuemin Guan <xu...@appresso.com>.
code the process of serializing yourself.
tom john wrote:
> what do you mean "by hand" ?
>
> --- Eric_Schwarzenbach@Classwell.com wrote:
>
>>Given how simple the data in attribute and text
>>nodes are, it would only
>>take a few lines of code to serialize them "by
>>hand."
>>
>>
>>
>>
>>
>>
>>
>> tom john
>>
>>
>> <cybernv@yahoo.c To:
>> xerces-j-user@xml.apache.org
>>
>> om> cc:
>>
>>
>>
>>Subject: How to serialize Text or Attribute node.
>>
>> 04/26/2002 04:25
>>
>>
>> AM
>>
>>
>> Please respond
>>
>>
>> to xerces-j-user
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>hi,
>>i am using 'org.apache.xml.serialize.XMLSerializer'
>>to
>>serialize xml documents. I can easily serialize xml
>>document or elements.. but i now i need to serialize
>>any results i get using xpath statements (XPathAPI).
>>the results are all nodes but can be a 'text node'
>>or
>>'attribute node' etc.. as well. i cannot cast these
>>as
>>an Element.
>>
>>serializer.serialize((Element)node);
>>
>>is there a solution??
>>
>>
>>__________________________________________________
>>Do You Yahoo!?
>>Yahoo! Games - play chess, backgammon, pool and more
>>http://games.yahoo.com/
>>
>>
>>
> ---------------------------------------------------------------------
>
>>To unsubscribe, e-mail:
>>xerces-j-user-unsubscribe@xml.apache.org
>>For additional commands, e-mail:
>>xerces-j-user-help@xml.apache.org
>>
>>
>>
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
>
>>To unsubscribe, e-mail:
>>xerces-j-user-unsubscribe@xml.apache.org
>>For additional commands, e-mail:
>>xerces-j-user-help@xml.apache.org
>>
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>
>
>
--
Xuemin Guan
Software Engineer
Appresso SpA (www.appresso.com)
Tel: +81-3-4412-7790(Direct)
+81-3-4412-7700(Represent)
Email: xuemin@appresso.com
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org