You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Smita <Sm...@3UpSystems.com> on 2002/02/07 02:49:36 UTC

createDocument help

Hi,
 I am trying to create a DOM_Document like thi:
 
  DOM_DOMImplementation impl;
  DOM_DocumentType type;
  DOM_Document doc = impl.createDocument(0, "xml_root", type);

I am getting the following error:

Program received signal SIGSEGV, Segmentation fault.
0x401cdd4a in getDomConverter () from /lib/libxerces-c1_6_0.so
(gdb) where
#0  0x401cdd4a in getDomConverter () from /lib/libxerces-c1_6_0.so
#1  0x401cddc1 in DOMString::DOMString () from /lib/libxerces-c1_6_0.so
#2  0x080518cc in TU_XmlContent::TU_XmlContent (this=0x8065a18)
    at tu_xmlcontent.cc:12
#3  0x0804b41c in main (argc=1, argv=0xbffff38c) at test.cc:47
#4  0x40455177 in __libc_start_main (main=0x804b1d0 <main>, argc=1,
    ubp_av=0xbffff38c, init=0x804a6e4 <_init>, fini=0x8058834 <_fini>,
    rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff37c)
    at ../sysdeps/generic/libc-start.c:129

What does this mean? How is a DOM_Document created? I am new to xerces.
Thanks.

Regards.
Smita


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: createDocument help

Posted by Tinny Ng <tn...@ca.ibm.com>.
> What does this mean?
Have you called XMLPlatformUtils::Initialize();?

> How is a DOM_Document created? I am new to xerces.
You can refer to sample CreateDOMDocument as an example.

Tinny

Smita wrote:

> Hi,
>  I am trying to create a DOM_Document like thi:
>
>   DOM_DOMImplementation impl;
>   DOM_DocumentType type;
>   DOM_Document doc = impl.createDocument(0, "xml_root", type);
>
> I am getting the following error:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x401cdd4a in getDomConverter () from /lib/libxerces-c1_6_0.so
> (gdb) where
> #0  0x401cdd4a in getDomConverter () from /lib/libxerces-c1_6_0.so
> #1  0x401cddc1 in DOMString::DOMString () from /lib/libxerces-c1_6_0.so
> #2  0x080518cc in TU_XmlContent::TU_XmlContent (this=0x8065a18)
>     at tu_xmlcontent.cc:12
> #3  0x0804b41c in main (argc=1, argv=0xbffff38c) at test.cc:47
> #4  0x40455177 in __libc_start_main (main=0x804b1d0 <main>, argc=1,
>     ubp_av=0xbffff38c, init=0x804a6e4 <_init>, fini=0x8058834 <_fini>,
>     rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff37c)
>     at ../sysdeps/generic/libc-start.c:129
>
> What does this mean? How is a DOM_Document created? I am new to xerces.
> Thanks.
>
> Regards.
> Smita
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org