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]
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
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
>
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