Re: [libxml-devel] Validating xml in a string

2008-07-01 Thread Charlie Savage
I have the same problem as dwTwiLighT, even, when i use parse method before. = I want to check if xml received by my application (made with RoR and libxml-ruby) via POST request is well-formed. This is the source code of that part: p = XML::Parser.new p.string = params[:xml]

Re: [libxml-devel] Validating xml in a string

2008-06-10 Thread jney
I have the same problem as dwTwiLighT, even, when i use parse method before. On Apr 24, 10:03 am, Chris McGrath <[EMAIL PROTECTED]> wrote: > I've been playing around with XML::Parser recently, and during my   > irbing I discovered you need to do p.parse before the context is   > created. > > Chris

Re: [libxml-devel] Validating xml in a string

2008-04-24 Thread Chris McGrath
I've been playing around with XML::Parser recently, and during my irbing I discovered you need to do p.parse before the context is created. Chris On 22 Apr 2008, at 11:06, dwTwiLighT a.k.a. dwCyMpaK wrote: > Greetings. > I want to check if xml received by my application (made with RoR and >

[libxml-devel] Validating xml in a string

2008-04-23 Thread dwTwiLighT a.k.a. dwCyMpaK
Greetings. I want to check if xml received by my application (made with RoR and libxml-ruby) via POST request is well-formed. This is the source code of that part: p = XML::Parser.new p.string = params[:xml] if p.context.well_formed? doc = p.parse surely that is