[Gambas-user] gb.xml "unSerialize"

Fabien Bodard gambas.fr at ...626...
Sat Oct 19 11:45:03 CEST 2013


Le 19 oct. 2013 11:23, "Caveat" <Gambas at ...1950...> a écrit :
>
> Just use FromText...
>
>    Dim myNoddies As XMLNode[]
>    Dim aNode As XMLNode
>    myNoddies = XMLElement.FromText("<SQL>Select * From table1 where abc
> < 123</SQL>")
>    Print myNoddies.Count
>    aNode = myNoddies[0]
>    Print aNode.TextContent
>
> Returns:
> 1
> Select * From table1 where abc < 123
>

Well

Print xmlelement.fromtext("text").content
>
> Kind regards,
> Caveat
>
> On 19/10/13 11:09, Bruce wrote:
> > What is the opposite of XMLElement.Serialize(text as String)?
> >
> > ( I want my SQL text back as "... WHERE rdate<current_date..." instead
> > of "... WHERE rdate<current_date...")
> >
> > tia
> > Bruce
> >
> >
> >
------------------------------------------------------------------------------
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the
most from
> > the latest Intel processors and coprocessors. See abstracts and
register >
> >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > Gambas-user mailing list
> > Gambas-user at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-user
> >
>
>
>
------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
> the latest Intel processors and coprocessors. See abstracts and register >
>
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



More information about the User mailing list