[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re : [scew-users] scew_element_by_name error..
From: |
mach |
Subject: |
Re: Re : [scew-users] scew_element_by_name error.. |
Date: |
Thu, 15 Jul 2010 23:01:07 -0700 (PDT) |
Thank you Aleix for your helpful hints.
Best regards,
Mach
----- Original Message ----
From: Aleix Conchillo Flaqué <address@hidden>
To: address@hidden
Sent: Fri, July 16, 2010 2:40:04 PM
Subject: Re: Re : [scew-users] scew_element_by_name error..
On Thu, Jul 15, 2010 at 09:59, mach <address@hidden> wrote:
> Thank you Aleix,
>
> The reason I used assertion was just for check the return value of element
> if found.
> As you wrote, it's OK to use if statement.
>
> The original examples/scew_print/scew_print.c without any modification prints
> well
> input xml files as following.
>
> ...
> <trt:Profiles token="1080P_h264">
> ...
> ...
> ...
> </trt:Profiles>
> ...
>
> So, there is trt:Profiles in input xml file.
[snipped]
scew_element_by_name does not search elements recursivelly, so my be
that's your problem. You are supossing "trt:Profiles" elements are
children of the root element. I don't know your XML structure, but
probably that's the reason.
May be adding a function to SCEW to search an element recursivelly
would be useful...
Aleix
_______________________________________________
scew-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/scew-users