Re: how do i split an xml file using c++ (and the sax parser)
- From: "Vityok" <anyakin@xxxxxxxxxxxxxxxxxxxxx>
- Date: 6 Jan 2006 07:26:46 -0800
In your example it's just splitting an input stream into parts with
empty line separator.
For a more generic case, I think you will have to either process SAX
events, or serialize different DOM nodes.
vin b wrote:
> given a file such as
> <parent name="john">
> <child>a</child>
> <child>b</child>
> <child>c</child>
> </parent>
>
> <parent name="james">
> <child>a</child>
> </parent>
>
> <parent name="jim">
> <child>d</child>
> <child>a</child>
> </parent>
>
> , how would i split it, using c++ to 3 files corresponding to the
> <parent....> </parent> segments?
>
> thanks, vin
.
- References:
- Prev by Date: How best to apply XSL to responseXML from XMLHttpRequest??
- Next by Date: Re: How best to apply XSL to responseXML from XMLHttpRequest??
- Previous by thread: how do i split an xml file using c++ (and the sax parser)
- Next by thread: Help using xml to integrate rss feeds in a website
- Index(es):