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 "Awasthi, Anand" <An...@bmc.com> on 2001/06/25 18:44:01 UTC

XML Generation using DOMPrint !!

Hi,

I am trying to geenrate an XMLfile or an XML string from DOM_Node using
exmaple given in 
DOMPrint.cpp.I get XMLs but i also get junk at the end of xml. what may be
the resaon.
pls enlighten me.



i am using following statements for xml generation: 


1. for file :


xmlfile << domnode << endl;

where xmlfile is o/p file name provied by me.

2. for string 

    ostr << domnode; 
    DOMString domstr(ostr.str()); 



         

-----Original Message-----
From: Christoffer Dam Bruun [mailto:cb@systematic.dk]
Sent: Monday, June 25, 2001 10:10 AM
To: 'xerces-c-dev@xml.apache.org'
Subject: Iconv390


Hi, 

We're in the process of getting xerces to compile on OS/390 Classic and have
run into the following
errors when trying compilation Iconv390TransService.cpp:

'SCSSE.XML.CPP(ICONV300)'", line 313.12: CBC1174(S) An object of abstract
class "Iconv390Transcoder" cannot be created.
 "SCSSE.XML.HPP(TRANSS00)", line 289.26: CBC1339(I)
"XMLTranscoder::transcodeFrom(const XMLByte*const,const unsigned
 int,XMLCh*const,const unsigned int,unsigned int&,unsigned char*const)" is
an undefined pure virtual function.
 "SCSSE.XML.HPP(TRANSS00)", line 299.26: CBC1339(I)
"XMLTranscoder::transcodeTo(const XMLCh*const,const unsigned
 int,XMLByte*const,const unsigned int,unsigned int&,const UnRepOpts)" is an
undefined pure virtual function.
 "SCSSE.XML.HPP(TRANSS00)", line 309.18: CBC1339(I)
"XMLTranscoder::canTranscodeTo(const unsigned int) const" is an
 undefined pure virtual function.
 CBC1793(I) Compilation failed for file //'SCSSE.XML.CPP(ICONV300)'.  Object
file not created

It seems that 3 virtual functions are not implemented for the
Iconv390Transcoder specialization of
XMLTranscoder.

Is it necessary that these functions are implementet ?

Is it af compiler quirk ?

Could we just implement them as:  {printf("XXX Not implemented!\n); exit 1;}
:-)
and see how far we got.  I do not have a OS390 at hand so the change,
compile, run iteration takes a while.

Should we try and steal some code from the OS400 port ?


regards.
Christoffer Bruun
email: cb@systematic.dk


---
Ed is the standard text editor.
If you use ed, you are on the path to redemption, the
so-calleds "visual" editors have been placed here by ed to tempt the 
faithless.  DO NOT GIVE IN!!!  THE MIGHTY ED HAS SPOKEN!!!


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