I found the source of the error, in my XML document there are some costume
tags such us
<response>
<doc>
if I change those tags to <lst> the code work.  One other source of error
is when the text does not fit on to one line such as:

<str name="fulltext">
MORGANZA, La. (AP) -- Federal officials say they are going to open a
Mississippi River floodgate for the first time in nearly four decades at 3
p.m. CDT. The Army Corps of Engineers made the</str>

Does anyone know how I can add different tags to sorlDoc?
http://www.omegahat.org/RSXML/solrDocs.R

And how to deal with the text on more then one line?

Just to be clear I'm using XML package, with the sorlDoc code found at the
bottom of this page
http://www.omegahat.org/RSXML/

Thanks,
Andy

On Sun, Dec 25, 2011 at 8:49 AM, Duncan Temple Lang [via R] <
ml-node+s789695n4232984h76@n4.nabble.com> wrote:

>
> In addition to the general tools of the XML package,
> I also had code that read documents with a similar structure
> to the ones Andy illustrated. I put them and simple examples
> of using them at the bottom of
>
>    http://www.omegahat.org/RSXML/
>
> page.
>
>   D.
>
> On 12/23/11 5:50 PM, Ben Tupper wrote:
>
> > Hi Andy,
> >
> > On Dec 23, 2011, at 2:51 PM, [hidden email]<http://user/SendEmail.jtp?type=node&node=4232984&i=0>wrote:
> >
> >> I need to construct a custom XML reader, the files I'm working with are
> in
> >> funky XML format:
> >>
> >> <str name="author">Paul H</str>
> >>  <str name="country">USA</str>
> >>  <date name="created_date">2010-02-16</date>
> >>
> >> I want to read the file so it looks like:
> >>
> >> author = Paul H
> >> country = USA
> >> created_date=2010-02-16
> >>
> >> Does any one know how to go about this problem, or know of good
> references i
> >> could access?
> >>
> >
> >
> > Have you tried Duncan Temple Lang's XML package for R?  It works very
> well for parsing and building XML formatted data.
> >
> > http://www.omegahat.org/RSXML/
> >
> > Cheers,
> > Ben
> >
> >
> >
> >> Thanks,
> >> Andy
> >>
> >>
> >> --
> >> View this message in context:
> http://r.789695.n4.nabble.com/Custom-XML-Readers-tp4229614p4229614.html
> >> Sent from the R help mailing list archive at Nabble.com.
> >>
> >> ______________________________________________
> >> [hidden email] <http://user/SendEmail.jtp?type=node&node=4232984&i=1>mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-help
> >> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> >> and provide commented, minimal, self-contained, reproducible code.
> >
> > Ben Tupper
> > Bigelow Laboratory for Ocean Sciences
> > 180 McKown Point Rd. P.O. Box 475
> > West Boothbay Harbor, Maine   04575-0475
> > http://www.bigelow.org
> >
> > ______________________________________________
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=4232984&i=2>mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4232984&i=3>mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://r.789695.n4.nabble.com/Custom-XML-Readers-tp4229614p4232984.html
>  To unsubscribe from Custom XML Readers, click here<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4229614&code=cGwucnVkeUBnbWFpbC5jb218NDIyOTYxNHwtOTM5ODM3NzI3>
> .
> NAML<http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: http://r.789695.n4.nabble.com/Custom-XML-Readers-tp4229614p4243741.html
Sent from the R help mailing list archive at Nabble.com.
	[[alternative HTML version deleted]]

