From ocrush1@yahoo.com Wed Jul 31 20:28:34 2002 Return-Path: Delivered-To: xml@gnome.org Received: from web40303.mail.yahoo.com (web40303.mail.yahoo.com [66.218.78.82]) by mail.gnome.org (Postfix) with SMTP id B4E6618139 for ; Wed, 31 Jul 2002 20:28:33 -0400 (EDT) Message-ID: <20020801002833.62964.qmail@web40303.mail.yahoo.com> Received: from [204.250.1.2] by web40303.mail.yahoo.com via HTTP; Wed, 31 Jul 2002 17:28:33 PDT Date: Wed, 31 Jul 2002 17:28:33 -0700 (PDT) From: OrangeCrush To: xml@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-572018-1028161713=:62841" Subject: [xml] Context Node Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: --0-572018-1028161713=:62841 Content-Type: text/plain; charset=us-ascii Hello, Does anyone know how to change the Xpath context node? I have tried setting the xmlXpathContextPtr's current node to the desired node. For example I defined xmllXpathContextPtr ctx and then ctx->node = mynode. But if I use the xmlDocSetRootElement(doc,ctx-node) it sets the new root and thus I can accomplish querying a subtree. I would like not to change the root node of the document because I am using the doc over and over again. The file I am using is the gjobs.xml. In this file I would like to set the xmlXpathContext structure node member to the gjob:Contact node. Thanks, --------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better --0-572018-1028161713=:62841 Content-Type: text/html; charset=us-ascii

Hello,

Does anyone know how to change the Xpath context node?  I have tried setting the xmlXpathContextPtr's current node to the desired node.  For example I defined xmllXpathContextPtr ctx and then ctx->node = mynode.  But if I use the xmlDocSetRootElement(doc,ctx-node) it sets the new root and thus I can accomplish querying a subtree.  I would like not to change the root node of the document because I am using the doc over and over again.  The file I am using is the gjobs.xml.  In this file I would like to set the xmlXpathContext structure node  member to the gjob:Contact node.

Thanks,



Do You Yahoo!?
Yahoo! Health - Feel better, live better --0-572018-1028161713=:62841-- From Arden.Liu@motorola.com Wed Jul 31 21:29:19 2002 Return-Path: Delivered-To: xml@gnome.org Received: from motgate.mot.com (motgate.mot.com [129.188.136.100]) by mail.gnome.org (Postfix) with ESMTP id 2007B180FF for ; Wed, 31 Jul 2002 21:29:19 -0400 (EDT) Received: [from mothost.mot.com (mothost.mot.com [129.188.137.101]) by motgate.mot.com (motgate 2.1) with ESMTP id SAA16585 for ; Wed, 31 Jul 2002 18:29:18 -0700 (MST)] Received: [from zch08exm03.corp.mot.com ([200.30.2.192]) by mothost.mot.com (MOT-pobox 2.0) with ESMTP id SAA18349 for ; Wed, 31 Jul 2002 18:29:31 -0700 (MST)] Received: by zch08exm03 with Internet Mail Service (5.5.2654.52) id ; Thu, 1 Aug 2002 09:28:56 +0800 Message-ID: From: Liu Arden-QCH1547 To: xml@gnome.org Cc: "'OrangeCrush'" Subject: RE: [xml] Context Node Date: Thu, 1 Aug 2002 09:28:47 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.52) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C238FA.C89B36F0" Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C238FA.C89B36F0 Content-Type: text/plain // type == 1 : COUNT // type == 2 : Element // type == 3 : Attribute // Note: the caller should xmlFree the result int xtract(xmlDocPtr doc, const xmlChar *testxpath, int type, const xmlChar *attribute, xmlChar **result) { int numvals=0; xmlXPathContextPtr ctxt = NULL; ctxt = xmlXPathNewContext(doc); ctxt->node = xmlDocGetRootElement(doc); xmlXPathObjectPtr obj = NULL; obj = xmlXPathEvalExpression(testxpath, ctxt); if((obj==NULL)||(obj->type!= XPATH_NODESET)||(obj->nodesetval==NULL)||(obj->nodesetval->nodeNr<=0)) { xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return numvals; } if(type==1) { xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return obj->nodesetval->nodeNr; } //will return first value if(type==2) { xmlNodePtr cur = obj->nodesetval->nodeTab[0]->xmlChildrenNode; if(cur==NULL) { xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return 0; } *result = xmlStrdup(cur->content); xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return obj->nodesetval->nodeNr; } if(type==3) { xmlNodePtr cur = obj->nodesetval->nodeTab[0]; if(cur==NULL) { xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return 0; } if(attribute==NULL) { xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return 0; } else { *result = xmlGetProp(cur, attribute); xmlXPathFreeObject(obj); xmlXPathFreeContext(ctxt); return obj->nodesetval->nodeNr; } } return 0; } -----Original Message----- From: OrangeCrush [mailto:ocrush1@yahoo.com] Sent: Thursday, August 01, 2002 8:29 AM To: xml@gnome.org Subject: [xml] Context Node Hello, Does anyone know how to change the Xpath context node? I have tried setting the xmlXpathContextPtr's current node to the desired node. For example I defined xmllXpathContextPtr ctx and then ctx->node = mynode. But if I use the xmlDocSetRootElement(doc,ctx-node) it sets the new root and thus I can accomplish querying a subtree. I would like not to change the root node of the document because I am using the doc over and over again. The file I am using is the gjobs.xml. In this file I would like to set the xmlXpathContext structure node member to the gjob:Contact node. Thanks, _____ Do You Yahoo!? Yahoo! Health - Feel better, live better ------_=_NextPart_001_01C238FA.C89B36F0 Content-Type: text/html
// type == 1 : COUNT
// type == 2 : Element
// type == 3 : Attribute
// Note: the caller should xmlFree the result
int xtract(xmlDocPtr doc, const xmlChar *testxpath, int type, const xmlChar *attribute, xmlChar **result)
{
  int numvals=0;
  xmlXPathContextPtr ctxt = NULL;
 
  ctxt = xmlXPathNewContext(doc);
  ctxt->node = xmlDocGetRootElement(doc);
 
  xmlXPathObjectPtr obj = NULL;
  obj = xmlXPathEvalExpression(testxpath, ctxt);
 
  if((obj==NULL)||(obj->type!= XPATH_NODESET)||(obj->nodesetval==NULL)||(obj->nodesetval->nodeNr<=0))
  {
    xmlXPathFreeObject(obj);
    xmlXPathFreeContext(ctxt);
    return numvals;
  }
 
  if(type==1)
  {
    xmlXPathFreeObject(obj);
    xmlXPathFreeContext(ctxt);
    return obj->nodesetval->nodeNr;
  }
 
  //will return first value
  if(type==2)
  {
    xmlNodePtr cur = obj->nodesetval->nodeTab[0]->xmlChildrenNode;
    if(cur==NULL)
    {
      xmlXPathFreeObject(obj);
      xmlXPathFreeContext(ctxt);
      return 0;
    }
    *result = xmlStrdup(cur->content);
    xmlXPathFreeObject(obj);
    xmlXPathFreeContext(ctxt);
    return obj->nodesetval->nodeNr;
  }
 
  if(type==3)
  {
    xmlNodePtr cur = obj->nodesetval->nodeTab[0];
    if(cur==NULL)
    {
      xmlXPathFreeObject(obj);
      xmlXPathFreeContext(ctxt);
      return 0;
    }
    if(attribute==NULL)
    {
      xmlXPathFreeObject(obj);
      xmlXPathFreeContext(ctxt);
      return 0;
    }
    else
    {
      *result = xmlGetProp(cur, attribute);
      xmlXPathFreeObject(obj);
      xmlXPathFreeContext(ctxt);
      return obj->nodesetval->nodeNr;
    }
  }
  return 0;
}
-----Original Message-----
From: OrangeCrush [mailto:ocrush1@yahoo.com]
Sent: Thursday, August 01, 2002 8:29 AM
To: xml@gnome.org
Subject: [xml] Context Node

Hello,

Does anyone know how to change the Xpath context node?  I have tried setting the xmlXpathContextPtr's current node to the desired node.  For example I defined xmllXpathContextPtr ctx and then ctx->node = mynode.  But if I use the xmlDocSetRootElement(doc,ctx-node) it sets the new root and thus I can accomplish querying a subtree.  I would like not to change the root node of the document because I am using the doc over and over again.  The file I am using is the gjobs.xml.  In this file I would like to set the xmlXpathContext structure node  member to the gjob:Contact node.

Thanks,



Do You Yahoo!?
Yahoo! Health - Feel better, live better
------_=_NextPart_001_01C238FA.C89B36F0-- From veillard@redhat.com Thu Aug 1 04:49:45 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C16C818896 for ; Thu, 1 Aug 2002 04:49:44 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g718nhM31897; Thu, 1 Aug 2002 04:49:43 -0400 Date: Thu, 1 Aug 2002 04:49:43 -0400 From: Daniel Veillard To: Steve Williams Cc: xml@gnome.org Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar Message-ID: <20020801044943.Q5447@redhat.com> Reply-To: veillard@redhat.com References: <3D484C13.2050205@rinax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D484C13.2050205@rinax.com>; from swilliams@rinax.com on Wed, Jul 31, 2002 at 02:44:03PM -0600 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Wed, Jul 31, 2002 at 02:44:03PM -0600, Steve Williams wrote: > Hi, > > I am reading a (non-xml) file and building the DOM tree manually using > xmlNewDoc, xmlNewDocNode, xmlNewChild (per the sample on the web site). > > I am confused how I get input that I read into a char * array into an > xmlChar* buffer... see http://xmlsoft.org/encoding.html xmlChar * means an array of char encoded in UTF-8 > Right now, I am using BAD_CAST to force the issue, but I need to do it This is fine if you're sure it's ASCII > "right" for deployment as I may be getting french characters in the > input file... French characters (well accented ones for example) are not in ASCII but probably in ISO Latin 1, use the following function to convert them before passing the strings to the API: int isolat1ToUTF8(unsigned char* out, int *outlen, const unsigned char* in, int *inlen) { Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From Arden.Liu@motorola.com Thu Aug 1 05:48:58 2002 Return-Path: Delivered-To: xml@gnome.org Received: from motgate2.mot.com (motgate2.mot.com [136.182.1.10]) by mail.gnome.org (Postfix) with ESMTP id 2DBC018F79 for ; Thu, 1 Aug 2002 05:48:58 -0400 (EDT) Received: [from mothost.mot.com (mothost.mot.com [129.188.137.101]) by motgate2.mot.com (motgate2 2.1) with ESMTP id CAA13144 for ; Thu, 1 Aug 2002 02:49:04 -0700 (MST)] Received: [from zch08exm03.corp.mot.com ([200.30.2.192]) by mothost.mot.com (MOT-pobox 2.0) with ESMTP id CAA03575 for ; Thu, 1 Aug 2002 02:49:14 -0700 (MST)] Received: by zch08exm03 with Internet Mail Service (5.5.2654.52) id ; Thu, 1 Aug 2002 17:48:53 +0800 Message-ID: From: Liu Arden-QCH1547 To: "'xml@gnome.org'" Date: Thu, 1 Aug 2002 17:48:50 +0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2654.52) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C23940.A3C2FBB0" Subject: [xml] How can I use xinclude between two xmlDocPtrs Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C23940.A3C2FBB0 Content-Type: text/plain Hello, I want to use xslt to translate two XML files, which create in memory. I hope I can use xinclude to link two xmlDocPtr. (I do not want to save this XML file to disks.) Could you help me? Thanks. Arden ------_=_NextPart_001_01C23940.A3C2FBB0 Content-Type: text/html
Hello,
I want to use xslt to translate two XML files, which create in memory.
I hope I can use xinclude to link two xmlDocPtr. (I do not want to save this XML file to disks.)
Could you help me?
Thanks.
Arden
 
------_=_NextPart_001_01C23940.A3C2FBB0-- From veillard@redhat.com Thu Aug 1 08:58:34 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 71C3419087 for ; Thu, 1 Aug 2002 08:58:34 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g71CwPc03849; Thu, 1 Aug 2002 08:58:25 -0400 Date: Thu, 1 Aug 2002 08:58:25 -0400 From: Daniel Veillard To: Christian Glahn , xml@gnome.org Subject: Re: [xml] Problem in Namespace handling in xmlSetNsProp (?) Message-ID: <20020801085825.T5447@redhat.com> Reply-To: veillard@redhat.com References: <20020731125033.GA23740@c102-cg.uibk.ac.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020731125033.GA23740@c102-cg.uibk.ac.at>; from christian.glahn@uibk.ac.at on Wed, Jul 31, 2002 at 02:50:33PM +0200 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Wed, Jul 31, 2002 at 02:50:33PM +0200, Christian Glahn wrote: > hallo, > > i found a problem related to the ancient bugzilla id #55683, which is > namespace handling for attributes. the bug tracking says it's fixed, > while it's still broken (i checked the cvs version) [...] > as the original bugreport #55683 says, attributes that have no namespace > themselfes must not inherit the parents namespace. but if one looks to this > statement, this is exactly what libxml2 does. (as the example shows) [...] > i tested this code and it gives me the expected results. > > (note: the same problem is with xmlUnsetNsProp()) Okay, I commited both fixes in CVS, I didn't close all occurences of #55683, or not the right ones... http://cvs.gnome.org/bonsai/cvsquery.cgi?module=gnome-xml&branch=HEAD&branchtype=match&dir=gnome-xml&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=08%2F01%2F02+08%3A51&maxdate=08%2F01%2F02+08%3A53&cvsroot=%2Fcvs%2Fgnome and http://cvs.gnome.org/bonsai/cvsquery.cgi?module=gnome-xml&branch=HEAD&branchtype=match&dir=gnome-xml&file=&filetype=match&who=veillard&whotype=match&sortby=Date&hours=&date=explicit&mindate=08%2F01%2F02+08%3A53&maxdate=08%2F01%2F02+08%3A55&cvsroot=%2Fcvs%2Fgnome thanks for the report, Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From hannu@tm.ee Thu Aug 1 13:52:12 2002 Return-Path: Delivered-To: xml@gnome.org Received: from taru.tm.ee (unknown [213.180.2.168]) by mail.gnome.org (Postfix) with ESMTP id D49D41842B for ; Thu, 1 Aug 2002 13:52:11 -0400 (EDT) Received: (from hannu@localhost) by taru.tm.ee (8.11.6/8.11.6) id g71IrmB13535; Thu, 1 Aug 2002 20:53:48 +0200 X-Authentication-Warning: taru.tm.ee: hannu set sender to hannu@tm.ee using -f Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar From: Hannu Krosing To: veillard@redhat.com Cc: Steve Williams , xml@gnome.org In-Reply-To: <20020801044943.Q5447@redhat.com> References: <3D484C13.2050205@rinax.com> <20020801044943.Q5447@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.3.99 Date: 01 Aug 2002 20:53:47 +0200 Message-Id: <1028228027.12593.59.camel@taru.tm.ee> Mime-Version: 1.0 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Thu, 2002-08-01 at 10:49, Daniel Veillard wrote: > > French characters (well accented ones for example) are not in ASCII > but probably in ISO Latin 1, use the following function to convert them > before passing the strings to the API: > int > isolat1ToUTF8(unsigned char* out, int *outlen, > const unsigned char* in, int *inlen) { Why is it "unsigned char* out" and not "xmlChar* out" ? Or are they actually made the same by some macro ? --------------- Hannu From ml@cm4all.com Thu Aug 1 14:16:03 2002 Return-Path: Delivered-To: xml@gnome.org Received: from exchange.intern.cm-ag (pc004.content.piro.com [195.135.144.148]) by mail.gnome.org (Postfix) with ESMTP id C7B60188E1 for ; Thu, 1 Aug 2002 14:16:02 -0400 (EDT) Received: by exchange.intern.cm-ag with Internet Mail Service (5.5.2650.21) id <3375LK3S>; Thu, 1 Aug 2002 20:16:01 +0200 Message-ID: From: "Labib Iskander, Marcus" To: "'xml@gnome.org'" Subject: RE: [xml] Build DOM tree manually from ASCII file and getting da ta into xmlChar Date: Thu, 1 Aug 2002 20:15:59 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: Hi, > Why is it "unsigned char* out" and not "xmlChar* out" ? > Or are they actually made the same by some macro ? not by a macro. from tree.h: typedef unsigned char xmlChar; Why in isolat1ToUTF8 xmlChar is not used I don't know either. Perhaps the meaning of xmlChar is still supposed to be changeable? Otherwise there would probably be a function like isolat1ToXmlChar? marcus From veillard@redhat.com Thu Aug 1 17:50:56 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 5486918757 for ; Thu, 1 Aug 2002 17:50:56 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g71LooC32731; Thu, 1 Aug 2002 17:50:50 -0400 Date: Thu, 1 Aug 2002 17:50:50 -0400 From: Daniel Veillard To: Hannu Krosing Cc: Steve Williams , xml@gnome.org Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar Message-ID: <20020801175050.W5447@redhat.com> Reply-To: veillard@redhat.com References: <3D484C13.2050205@rinax.com> <20020801044943.Q5447@redhat.com> <1028228027.12593.59.camel@taru.tm.ee> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <1028228027.12593.59.camel@taru.tm.ee>; from hannu@tm.ee on Thu, Aug 01, 2002 at 08:53:47PM +0200 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Thu, Aug 01, 2002 at 08:53:47PM +0200, Hannu Krosing wrote: > On Thu, 2002-08-01 at 10:49, Daniel Veillard wrote: > > > > French characters (well accented ones for example) are not in ASCII > > but probably in ISO Latin 1, use the following function to convert them > > before passing the strings to the API: > > int > > isolat1ToUTF8(unsigned char* out, int *outlen, > > const unsigned char* in, int *inlen) { > > > Why is it "unsigned char* out" and not "xmlChar* out" ? for conformance with iconv() interfaces > Or are they actually made the same by some macro ? No need for macros in both case it's a 0 terminated sequence of bytes you just need to be sure it's in the UTF8 encoding to use it for xmlChar * Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From swilliams@rinax.com Thu Aug 1 18:34:43 2002 Return-Path: Delivered-To: xml@gnome.org Received: from nemesis.rinax.com (unknown [208.38.52.133]) by mail.gnome.org (Postfix) with ESMTP id B5DA4191C4 for ; Thu, 1 Aug 2002 18:34:42 -0400 (EDT) Received: from rinax.com ([10.1.1.85]) by nemesis.rinax.com with Microsoft SMTPSVC(5.0.2195.2966); Thu, 1 Aug 2002 16:34:41 -0600 Message-ID: <3D49B781.4020408@rinax.com> Date: Thu, 01 Aug 2002 16:34:41 -0600 From: Steve Williams User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar References: <3D484C13.2050205@rinax.com> <20020801044943.Q5447@redhat.com> <1028228027.12593.59.camel@taru.tm.ee> <20020801175050.W5447@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 01 Aug 2002 22:34:41.0573 (UTC) FILETIME=[A08F4550:01C239AB] Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: Hi, Thanks for the assistance to date, it is much appreciated. One of the joys of having the source is that I can look and see exactly how the routine works. As it stands now, isolat1ToUTF8 will never return an error. (there's only one return statement, and it's a "0"). So, I figure if I check the number of bytes processed in the input stream against the length of the input stream would work fine as a verification that the entire input string was processed. Here's a sample of code I threw togeter.... does anything glaring wrong jump out at anyone?? #include /* 80 character input buffer */ #define ISOLAT1BUFF 80 /* isolat1ToUTF8 shouldn't more than double (worst case) */ #define UTF8DEFAULT 2*ISOLAT1BUFF main() { int tmp; char * isolat1Tag="test conversion"; int isolat1TagLength; xmlChar *utf8Tag = xmlMalloc( UTF8DEFAULT * sizeof(utf8Tag)); int utf8TagLength = UTF8DEFAULT; /* Let's take the input tag and convert from an assumed format of * ISO-8559-1 (iso-latin-1) to the internal representation UTF-8 */ tmp = isolat1TagLength = strlen(isolat1Tag); if (!isolat1ToUTF8(utf8Tag, &utf8TagLength, isolat1Tag, &isolat1TagLength)){ /* It worked, let's make sure that it processed the whole input string */ if (isolat1TagLength != tmp){ fprintf(stderr, "isolat1ToUTF8 could not process entire TAG\n"); exit(1); } } else { fprintf(stderr, "isolat1ToUTF8 returned an error!!\n"); exit(1); } /* null terminate the UTF8 string */ *(utf8Tag+utf8TagLength)='\0'; exit(0); } Daniel Veillard wrote: >On Thu, Aug 01, 2002 at 08:53:47PM +0200, Hannu Krosing wrote: > > >>On Thu, 2002-08-01 at 10:49, Daniel Veillard wrote: >> >> >>> French characters (well accented ones for example) are not in ASCII >>>but probably in ISO Latin 1, use the following function to convert them >>>before passing the strings to the API: >>> int >>> isolat1ToUTF8(unsigned char* out, int *outlen, >>> const unsigned char* in, int *inlen) { >>> >>> >>Why is it "unsigned char* out" and not "xmlChar* out" ? >> >> > > for conformance with iconv() interfaces > > > >>Or are they actually made the same by some macro ? >> >> > > No need for macros in both case it's a 0 terminated sequence of bytes >you just need to be sure it's in the UTF8 encoding to use it for xmlChar * > >Daniel > > > From Markus_Blum@msg.de Thu Aug 1 19:05:50 2002 Return-Path: Delivered-To: xml@gnome.org Received: from ns2.msg.de (msgweb41i.msg.de [195.212.95.41]) by mail.gnome.org (Postfix) with ESMTP id 18FE5191E3 for ; Thu, 1 Aug 2002 19:05:50 -0400 (EDT) Received: from ssc.msg.de (ssc.msg.de [193.29.27.100]) by ns2.msg.de (Postfix) with ESMTP id 52FB21FDE5 for ; Fri, 2 Aug 2002 01:05:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by ssc.msg.de (Postfix on SuSE Linux 7.1 (i386)) with ESMTP id EB54E5993 for ; Fri, 2 Aug 2002 01:05:47 +0200 (CEST) Received: from msgc7i.msg.de (msgax6i.msg.de [193.29.27.227]) by ssc.msg.de (Postfix on SuSE Linux 7.1 (i386)) with ESMTP id 58A4A5AC3 for ; Fri, 2 Aug 2002 01:05:44 +0200 (CEST) From: Markus_Blum@msg.de To: xml@gnome.org Message-ID: Date: Fri, 2 Aug 2002 01:05:42 +0200 X-MIMETrack: Serialize by Router on msgc7i/msg(Release 5.0.8 |June 18, 2001) at 02.08.2002 01:05:43 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Virus-Scanned: by AMaViS perl-11 Subject: [xml] Markus Blum/msg ist =?iso-8859-1?Q?au=DFer_Haus=2E?= Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: Ich werde Ihre Nachricht nach meiner R=FCckkehr beantworten.= From rick_jones2@hp.com Thu Aug 1 21:00:04 2002 Return-Path: Delivered-To: xml@gnome.org Received: from palrel10.hp.com (palrel10.hp.com [156.153.255.245]) by mail.gnome.org (Postfix) with ESMTP id 8D6C218F79 for ; Thu, 1 Aug 2002 21:00:04 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel10.hp.com (Postfix) with ESMTP id BAC46C00092 for ; Thu, 1 Aug 2002 18:00:03 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id SAA06775 for ; Thu, 1 Aug 2002 18:00:03 -0700 (PDT) Message-ID: <3D49D993.4328C85C@hp.com> Date: Thu, 01 Aug 2002 18:00:03 -0700 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [xml] List valid values upon enumeration failure? Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: I've been debugging a DTD and XML file for my netperf4 work and was getting error messages like: netperf_config.xml:118: validity error: Value "Tran" for attribute units on throughput is not among the enumerated set end="later">1235.67 ^ I have seen where that message is generated in valid.c - does anyone else think that displaying the valid enumerated values would be of value here? If so I may take a stab at a patch. It does look a triffle ugly - having to build-up a string by walking the tree again: /* Validity Constraint: Enumeration */ if (attrDecl->atype == XML_ATTRIBUTE_ENUMERATION) { xmlEnumerationPtr tree = attrDecl->tree; while (tree != NULL) { if (xmlStrEqual(tree->name, value)) break; tree = tree->next; } if (tree == NULL) { VERROR(ctxt->userData, "Value \"%s\" for attribute %s on %s is not among the enumerated set\n", value, attr->name, elem->name); ret = 0; } } I don't think it would be apropriate to build the list as the tree is walked the first time - that would be optimizing for an error case. Also, shouldn't that be "...for attribute %s of element %s..." (of replacing on)? _That_ patch would be easy :) rick jones -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... From veillard@redhat.com Fri Aug 2 03:49:21 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 4E58D1818A for ; Fri, 2 Aug 2002 03:49:21 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g727nJb02029; Fri, 2 Aug 2002 03:49:19 -0400 Date: Fri, 2 Aug 2002 03:49:19 -0400 From: Daniel Veillard To: Steve Williams Cc: xml@gnome.org Subject: Re: [xml] Build DOM tree manually from ASCII file and getting data into xmlChar Message-ID: <20020802034919.X5447@redhat.com> Reply-To: veillard@redhat.com References: <3D484C13.2050205@rinax.com> <20020801044943.Q5447@redhat.com> <1028228027.12593.59.camel@taru.tm.ee> <20020801175050.W5447@redhat.com> <3D49B781.4020408@rinax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D49B781.4020408@rinax.com>; from swilliams@rinax.com on Thu, Aug 01, 2002 at 04:34:41PM -0600 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Thu, Aug 01, 2002 at 04:34:41PM -0600, Steve Williams wrote: > As it stands now, isolat1ToUTF8 will never return an error. (there's > only one return statement, and it's a "0"). yes because one can always convert an ISO Latin 1 string to an UTF8 strings. > So, I figure if I check the number of bytes processed in the input > stream against the length of the input stream would work fine as a > verification that the entire input string was processed. Partial conversions due to buffer availability are not reported as an error but as return values, yes. Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Fri Aug 2 04:47:51 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id 76C2F1843F for ; Fri, 2 Aug 2002 04:47:51 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g728jZp14407; Fri, 2 Aug 2002 04:45:35 -0400 Date: Fri, 2 Aug 2002 04:45:35 -0400 From: Daniel Veillard To: raj@cup.hp.com Cc: xml@gnome.org Subject: Re: [xml] List valid values upon enumeration failure? Message-ID: <20020802044535.Y5447@redhat.com> Reply-To: veillard@redhat.com References: <3D49D993.4328C85C@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D49D993.4328C85C@hp.com>; from rick_jones2@hp.com on Thu, Aug 01, 2002 at 06:00:03PM -0700 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Thu, Aug 01, 2002 at 06:00:03PM -0700, Rick Jones wrote: > I've been debugging a DTD and XML file for my netperf4 work and was > getting error messages like: > > netperf_config.xml:118: validity error: Value "Tran" for attribute units > on throughput is not among the enumerated set > end="later">1235.67 > ^ > > I have seen where that message is generated in valid.c - does anyone > else think that displaying the valid enumerated values would be of value > here? Well the problem is that you may end-up potentially with a really long list > If so I may take a stab at a patch. It does look a triffle ugly - > having to build-up a string by walking the tree again: > > /* Validity Constraint: Enumeration */ > if (attrDecl->atype == XML_ATTRIBUTE_ENUMERATION) { > xmlEnumerationPtr tree = attrDecl->tree; > while (tree != NULL) { > if (xmlStrEqual(tree->name, value)) break; > tree = tree->next; > } > if (tree == NULL) { > VERROR(ctxt->userData, > "Value \"%s\" for attribute %s on %s is not among the enumerated > set\n", > value, attr->name, elem->name); > ret = 0; > } > } yup, that's the place > I don't think it would be apropriate to build the list as the tree is > walked the first time - that would be optimizing for an error case. agreed too. That list exists but not as a string ... > Also, shouldn't that be "...for attribute %s of element %s..." (of > replacing on)? _That_ patch would be easy :) I don't claim any grammar correctness, fixes at that level are welcome ! Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From rick_jones2@hp.com Fri Aug 2 16:33:08 2002 Return-Path: Delivered-To: xml@gnome.org Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by mail.gnome.org (Postfix) with ESMTP id A16A91931A for ; Fri, 2 Aug 2002 16:33:07 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel13.hp.com (Postfix) with ESMTP id D871840088A for ; Fri, 2 Aug 2002 13:33:04 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id NAA24691 for ; Fri, 2 Aug 2002 13:33:03 -0700 (PDT) Message-ID: <3D4AEC7F.50E7BEB7@hp.com> Date: Fri, 02 Aug 2002 13:33:03 -0700 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 Cc: xml@gnome.org Subject: patch Re: [xml] List valid values upon enumeration failure? References: <3D49D993.4328C85C@hp.com> <20020802044535.Y5447@redhat.com> Content-Type: multipart/mixed; boundary="------------3C7295E11B61FE75DCAC5FF7" Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. --------------3C7295E11B61FE75DCAC5FF7 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit attached is a diff for the 2.4.23 valid.c that does some nitpicky grammar cleanup on error and warning messages. i decided to dismiss the notion of walking the enumerated lists for output in the error messages. rick jones -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... --------------3C7295E11B61FE75DCAC5FF7 Content-Type: text/plain; charset=us-ascii; name="valid.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="valid.diff" *** valid.c.orig Fri Aug 2 13:16:03 2002 --- valid.c Fri Aug 2 13:25:07 2002 *************** *** 1299,1305 **** } if ((defaultValue != NULL) && (!xmlValidateAttributeValue(type, defaultValue))) { ! VERROR(ctxt->userData, "Attribute %s on %s: invalid default value\n", elem, name, defaultValue); defaultValue = NULL; ctxt->valid = 0; --- 1299,1305 ---- } if ((defaultValue != NULL) && (!xmlValidateAttributeValue(type, defaultValue))) { ! VERROR(ctxt->userData, "Attribute %s of %s: invalid default value\n", elem, name, defaultValue); defaultValue = NULL; ctxt->valid = 0; *************** *** 1362,1368 **** * The attribute is already defined in this DTD. */ VWARNING(ctxt->userData, ! "Attribute %s on %s: already defined\n", name, elem); xmlFreeAttribute(ret); return(NULL); --- 1362,1368 ---- * The attribute is already defined in this DTD. */ VWARNING(ctxt->userData, ! "Attribute %s of element %s: already defined\n", name, elem); xmlFreeAttribute(ret); return(NULL); *************** *** 3203,3209 **** val = xmlValidateAttributeValue(attr->atype, attr->defaultValue); if (val == 0) { VERROR(ctxt->userData, ! "Syntax of default value for attribute %s on %s is not valid\n", attr->name, attr->elem); } ret &= val; --- 3203,3209 ---- val = xmlValidateAttributeValue(attr->atype, attr->defaultValue); if (val == 0) { VERROR(ctxt->userData, ! "Syntax of default value for attribute %s of %s is not valid\n", attr->name, attr->elem); } ret &= val; *************** *** 3214,3220 **** (attr->def != XML_ATTRIBUTE_IMPLIED) && (attr->def != XML_ATTRIBUTE_REQUIRED)) { VERROR(ctxt->userData, ! "ID attribute %s on %s is not valid must be #IMPLIED or #REQUIRED\n", attr->name, attr->elem); ret = 0; } --- 3214,3220 ---- (attr->def != XML_ATTRIBUTE_IMPLIED) && (attr->def != XML_ATTRIBUTE_REQUIRED)) { VERROR(ctxt->userData, ! "ID attribute %s of %s is not valid must be #IMPLIED or #REQUIRED\n", attr->name, attr->elem); ret = 0; } *************** *** 3271,3277 **** } if (tree == NULL) { VERROR(ctxt->userData, ! "Default value \"%s\" for attribute %s on %s is not among the enumerated set\n", attr->defaultValue, attr->name, attr->elem); ret = 0; } --- 3271,3277 ---- } if (tree == NULL) { VERROR(ctxt->userData, ! "Default value \"%s\" for attribute %s of %s is not among the enumerated set\n", attr->defaultValue, attr->name, attr->elem); ret = 0; } *************** *** 3445,3451 **** /* Validity Constraint: Attribute Value Type */ if (attrDecl == NULL) { VERROR(ctxt->userData, ! "No declaration for attribute %s on element %s\n", attr->name, elem->name); return(0); } --- 3445,3451 ---- /* Validity Constraint: Attribute Value Type */ if (attrDecl == NULL) { VERROR(ctxt->userData, ! "No declaration for attribute %s of element %s\n", attr->name, elem->name); return(0); } *************** *** 3454,3460 **** val = xmlValidateAttributeValue(attrDecl->atype, value); if (val == 0) { VERROR(ctxt->userData, ! "Syntax of value for attribute %s on %s is not valid\n", attr->name, elem->name); ret = 0; } --- 3454,3460 ---- val = xmlValidateAttributeValue(attrDecl->atype, value); if (val == 0) { VERROR(ctxt->userData, ! "Syntax of value for attribute %s of %s is not valid\n", attr->name, elem->name); ret = 0; } *************** *** 3463,3469 **** if (attrDecl->def == XML_ATTRIBUTE_FIXED) { if (!xmlStrEqual(value, attrDecl->defaultValue)) { VERROR(ctxt->userData, ! "Value for attribute %s on %s is different from default \"%s\"\n", attr->name, elem->name, attrDecl->defaultValue); ret = 0; } --- 3463,3469 ---- if (attrDecl->def == XML_ATTRIBUTE_FIXED) { if (!xmlStrEqual(value, attrDecl->defaultValue)) { VERROR(ctxt->userData, ! "Value for attribute %s of %s is different from default \"%s\"\n", attr->name, elem->name, attrDecl->defaultValue); ret = 0; } *************** *** 3493,3499 **** if (nota == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s on %s is not a declared Notation\n", value, attr->name, elem->name); ret = 0; } --- 3493,3499 ---- if (nota == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s of %s is not a declared Notation\n", value, attr->name, elem->name); ret = 0; } *************** *** 3505,3511 **** } if (tree == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s on %s is not among the enumerated notations\n", value, attr->name, elem->name); ret = 0; } --- 3505,3511 ---- } if (tree == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s of %s is not among the enumerated notations\n", value, attr->name, elem->name); ret = 0; } *************** *** 3520,3526 **** } if (tree == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s on %s is not among the enumerated set\n", value, attr->name, elem->name); ret = 0; } --- 3520,3526 ---- } if (tree == NULL) { VERROR(ctxt->userData, ! "Value \"%s\" for attribute %s of %s is not among the enumerated set\n", value, attr->name, elem->name); ret = 0; } *************** *** 3530,3536 **** if ((attrDecl->def == XML_ATTRIBUTE_FIXED) && (!xmlStrEqual(attrDecl->defaultValue, value))) { VERROR(ctxt->userData, ! "Value for attribute %s on %s must be \"%s\"\n", attr->name, elem->name, attrDecl->defaultValue); ret = 0; } --- 3530,3536 ---- if ((attrDecl->def == XML_ATTRIBUTE_FIXED) && (!xmlStrEqual(attrDecl->defaultValue, value))) { VERROR(ctxt->userData, ! "Value for attribute %s of %s must be \"%s\"\n", attr->name, elem->name, attrDecl->defaultValue); ret = 0; } *************** *** 4082,4088 **** ret = xmlValidateElementType(ctxt); if ((ret == -3) && (warn)) { VWARNING(ctxt->userData, ! "Element %s content model is ambiguous\n", name); } else if (ret == -2) { /* * An entities reference appeared at this level. --- 4082,4088 ---- ret = xmlValidateElementType(ctxt); if ((ret == -3) && (warn)) { VWARNING(ctxt->userData, ! "Content model for Element %s is ambiguous\n", name); } else if (ret == -2) { /* * An entities reference appeared at this level. *************** *** 4185,4205 **** if (name != NULL) { VERROR(ctxt->userData, ! "Element %s content doesn't follow the DTD\nExpecting %s, got %s\n", name, expr, list); } else { VERROR(ctxt->userData, ! "Element content doesn't follow the DTD\nExpecting %s, got %s\n", expr, list); } } else { if (name != NULL) { VERROR(ctxt->userData, ! "Element %s content doesn't follow the DTD\n", name); } else { VERROR(ctxt->userData, ! "Element content doesn't follow the DTD\n"); } } ret = 0; --- 4185,4205 ---- if (name != NULL) { VERROR(ctxt->userData, ! "Element %s content does not follow the DTD\nExpecting %s, got %s\n", name, expr, list); } else { VERROR(ctxt->userData, ! "Element content does not follow the DTD\nExpecting %s, got %s\n", expr, list); } } else { if (name != NULL) { VERROR(ctxt->userData, ! "Element %s content does not follow the DTD\n", name); } else { VERROR(ctxt->userData, ! "Element content does not follow the DTD\n"); } } ret = 0; *************** *** 4620,4631 **** if (qualified == -1) { if (attr->prefix == NULL) { VERROR(ctxt->userData, ! "Element %s doesn't carry attribute %s\n", elem->name, attr->name); ret = 0; } else { VERROR(ctxt->userData, ! "Element %s doesn't carry attribute %s:%s\n", elem->name, attr->prefix,attr->name); ret = 0; } --- 4620,4631 ---- if (qualified == -1) { if (attr->prefix == NULL) { VERROR(ctxt->userData, ! "Element %s does not carry attribute %s\n", elem->name, attr->name); ret = 0; } else { VERROR(ctxt->userData, ! "Element %s does not carry attribute %s:%s\n", elem->name, attr->prefix,attr->name); ret = 0; } *************** *** 4669,4675 **** if (xmlStrEqual(attr->name, ns->prefix)) { if (!xmlStrEqual(attr->defaultValue, ns->href)) { VERROR(ctxt->userData, ! "Element %s namespace name for %s doesn't match the DTD\n", elem->name, ns->prefix); ret = 0; } --- 4669,4675 ---- if (xmlStrEqual(attr->name, ns->prefix)) { if (!xmlStrEqual(attr->defaultValue, ns->href)) { VERROR(ctxt->userData, ! "Element %s namespace name for %s does not match the DTD\n", elem->name, ns->prefix); ret = 0; } *************** *** 4732,4738 **** (xmlStrEqual(root->name, BAD_CAST "html"))) goto name_ok; VERROR(ctxt->userData, ! "Not valid: root and DtD name do not match '%s' and '%s'\n", root->name, doc->intSubset->name); return(0); --- 4732,4738 ---- (xmlStrEqual(root->name, BAD_CAST "html"))) goto name_ok; VERROR(ctxt->userData, ! "Not valid: root and DTD name do not match '%s' and '%s'\n", root->name, doc->intSubset->name); return(0); *************** *** 4820,4826 **** id = xmlGetID(ctxt->doc, name); if (id == NULL) { VERROR(ctxt->userData, ! "IDREF attribute %s reference an unknown ID \"%s\"\n", attr->name, name); ctxt->valid = 0; } --- 4820,4826 ---- id = xmlGetID(ctxt->doc, name); if (id == NULL) { VERROR(ctxt->userData, ! "IDREF attribute %s references an unknown ID \"%s\"\n", attr->name, name); ctxt->valid = 0; } *************** *** 4841,4847 **** id = xmlGetID(ctxt->doc, str); if (id == NULL) { VERROR(ctxt->userData, ! "IDREFS attribute %s reference an unknown ID \"%s\"\n", attr->name, str); ctxt->valid = 0; } --- 4841,4847 ---- id = xmlGetID(ctxt->doc, str); if (id == NULL) { VERROR(ctxt->userData, ! "IDREFS attribute %s references an unknown ID \"%s\"\n", attr->name, str); ctxt->valid = 0; } *************** *** 5050,5056 **** } if (elem->etype == XML_ELEMENT_TYPE_EMPTY) { VERROR(ctxt->userData, ! "NOTATION attribute %s declared on EMPTY element %s\n", cur->name, cur->elem); ctxt->valid = 0; } --- 5050,5056 ---- } if (elem->etype == XML_ELEMENT_TYPE_EMPTY) { VERROR(ctxt->userData, ! "NOTATION attribute %s declared for EMPTY element %s\n", cur->name, cur->elem); ctxt->valid = 0; } --------------3C7295E11B61FE75DCAC5FF7-- From rick_jones2@hp.com Fri Aug 2 17:09:34 2002 Return-Path: Delivered-To: xml@gnome.org Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by mail.gnome.org (Postfix) with ESMTP id 2AE6A181CE for ; Fri, 2 Aug 2002 17:09:34 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel13.hp.com (Postfix) with ESMTP id C32C7400848 for ; Fri, 2 Aug 2002 14:09:33 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id OAA25316 for ; Fri, 2 Aug 2002 14:09:33 -0700 (PDT) Message-ID: <3D4AF50D.A6D1B5E@hp.com> Date: Fri, 02 Aug 2002 14:09:33 -0700 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [xml] shouldn't a make install use mkdir -p? Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: It would seem that a make install presumes that the prefixes already exist. Is that really the "right" thing, or should it instead be using mkdir -p? (2.4.32 on HP-UX 11.11) configure executed with --with-threads --prefix=/opt/libxml2 --exec-prefix=/opt/libxml2 rick jones $ make install Making install in include No suffix list. Making install in libxml No suffix list. No suffix list. make install-exec-hook No suffix list. /bin/sh ../../mkinstalldirs /opt/libxml2/include/libxml2/libxml mkdir /opt/libxml2 mkdir: cannot access /opt: Permission denied mkdir /opt/libxml2/include mkdir: cannot access /opt/libxml2: No such file or directory mkdir /opt/libxml2/include/libxml2 mkdir: cannot access /opt/libxml2/include: No such file or directory mkdir /opt/libxml2/include/libxml2/libxml mkdir: cannot access /opt/libxml2/include/libxml2: No such file or directory *** Error exit code 2 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... From rick_jones2@hp.com Fri Aug 2 17:49:11 2002 Return-Path: Delivered-To: xml@gnome.org Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by mail.gnome.org (Postfix) with ESMTP id F0B3918108 for ; Fri, 2 Aug 2002 17:49:10 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel13.hp.com (Postfix) with ESMTP id 4222C4004DE for ; Fri, 2 Aug 2002 14:49:10 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id OAA26011 for ; Fri, 2 Aug 2002 14:49:09 -0700 (PDT) Message-ID: <3D4AFE55.E302EA23@hp.com> Date: Fri, 02 Aug 2002 14:49:09 -0700 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 To: xml@gnome.org Subject: Re: [xml] shouldn't a make install use mkdir -p? References: <3D4AF50D.A6D1B5E@hp.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: and subsequent to greating /opt/libxml2 before the next make install: /opt/imake/bin/install -c -m 0644 ./html/index.sgml /opt/libxml2/doc/libxml2-2.4.23/html (cd ; gtkdoc-fixxref --module=libxml --html-dir=/opt/libxml2/doc) sh: gtkdoc-fixxref: not found. *** Error exit code 127 (ignored) Making install in example Making install in python Making install in . /bin/sh ../mkinstalldirs Make: Don't know how to make install-data-local. Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. *** Error exit code 1 Stop. I take it that gtkdoc-fixxref is a dependencie I missed? rick jones -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... From veillard@redhat.com Fri Aug 2 18:23:42 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id ACC301812B for ; Fri, 2 Aug 2002 18:23:42 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g72MLeV05971; Fri, 2 Aug 2002 18:21:40 -0400 Date: Fri, 2 Aug 2002 18:21:40 -0400 From: Daniel Veillard To: raj@cup.hp.com Cc: xml@gnome.org Subject: Re: patch Re: [xml] List valid values upon enumeration failure? Message-ID: <20020802182140.A5447@redhat.com> Reply-To: veillard@redhat.com References: <3D49D993.4328C85C@hp.com> <20020802044535.Y5447@redhat.com> <3D4AEC7F.50E7BEB7@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D4AEC7F.50E7BEB7@hp.com>; from rick_jones2@hp.com on Fri, Aug 02, 2002 at 01:33:03PM -0700 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Fri, Aug 02, 2002 at 01:33:03PM -0700, Rick Jones wrote: > attached is a diff for the 2.4.23 valid.c that does some nitpicky > grammar cleanup on error and warning messages. i decided to dismiss the > notion of walking the enumerated lists for output in the error messages. Okay, applied ! thanks ! Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From rick_jones2@hp.com Fri Aug 2 19:29:39 2002 Return-Path: Delivered-To: xml@gnome.org Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by mail.gnome.org (Postfix) with ESMTP id 5AAC918188 for ; Fri, 2 Aug 2002 19:29:39 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.44.58]) by palrel13.hp.com (Postfix) with ESMTP id B3156400269 for ; Fri, 2 Aug 2002 16:29:36 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_18546)/8.9.3 SMKit7.02) with ESMTP id QAA27592 for ; Fri, 2 Aug 2002 16:29:36 -0700 (PDT) Message-ID: <3D4B15E0.280442EF@hp.com> Date: Fri, 02 Aug 2002 16:29:36 -0700 From: Rick Jones Reply-To: raj@cup.hp.com Organization: the Unofficial HP X-Mailer: Mozilla 4.79 [en] (X11; I; HP-UX B.11.00 9000/785) X-Accept-Language: en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: [xml] knowing when cur is still valid? Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: I was perusing the tree documentation, and came across a number of entries such as this: xmlAddChild () xmlNodePtr xmlAddChild (xmlNodePtr parent, xmlNodePtr cur); Add a new node to parent, at the end of the child (or property) list merging adjacent TEXT nodes (in which case cur is freed) If the new node was already inserted in a document it is first unlinked from its existing context. If the new node is ATTRIBUTE, it is added into properties instead of children. If there is an attribute with equal name, it is first destroyed. parent : the parent node cur : the child node Returns : the child or NULL in case of error. I've naievely assumed that cur would be an xmlNodePtr I have allocated and filled-in with everything of interest. If cur is possibly freed by xmlAddChild, how will I know whether or not it is still OK to access or free cur? rick jones -- Wisdom Teeth are impacted, people are affected by the effects of events. these opinions are mine, all mine; HP might not want them anyway... :) feel free to post, OR email to raj in cup.hp.com but NOT BOTH... From veillard@redhat.com Sat Aug 3 01:39:28 2002 Return-Path: Delivered-To: xml@gnome.org Received: from devserv.devel.redhat.com (nat-pool-rdu.redhat.com [66.187.233.200]) by mail.gnome.org (Postfix) with ESMTP id C344E1815B for ; Sat, 3 Aug 2002 01:39:28 -0400 (EDT) Received: (from veillard@localhost) by devserv.devel.redhat.com (8.11.6/8.11.0) id g735bC028590; Sat, 3 Aug 2002 01:37:12 -0400 Date: Sat, 3 Aug 2002 01:37:12 -0400 From: Daniel Veillard To: raj@cup.hp.com Cc: xml@gnome.org Subject: Re: [xml] knowing when cur is still valid? Message-ID: <20020803013712.B5447@redhat.com> Reply-To: veillard@redhat.com References: <3D4B15E0.280442EF@hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3D4B15E0.280442EF@hp.com>; from rick_jones2@hp.com on Fri, Aug 02, 2002 at 04:29:36PM -0700 Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: On Fri, Aug 02, 2002 at 04:29:36PM -0700, Rick Jones wrote: > I was perusing the tree documentation, and came across a number of > entries such as this: > > > xmlAddChild () > > xmlNodePtr xmlAddChild (xmlNodePtr parent, > xmlNodePtr cur); > > Add a new node to parent, at the end of the child (or property) list > merging adjacent TEXT nodes (in which case cur is freed) If the new node > was already inserted in a document it is first unlinked from its > existing context. If the new node is ATTRIBUTE, it is added into > properties instead of children. If there is an attribute with equal > name, it is first destroyed. > > parent : the parent node > cur : the child node > Returns : the child or NULL in case of error. > > > I've naievely assumed that cur would be an xmlNodePtr I have allocated > and filled-in with everything of interest. If cur is possibly freed by > xmlAddChild, how will I know whether or not it is still OK to access or > free cur? if the xmlNodePtr returned is different than cur, then it means that you cannot access cur anymore (you don't need to free it either). Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From charlies@poliac.com Mon Aug 5 11:12:59 2002 Return-Path: Delivered-To: xml@gnome.org Received: from poliac.com (w114.z064001118.msp-mn.dsl.cnc.net [64.1.118.114]) by mail.gnome.org (Postfix) with SMTP id 61724180E3 for ; Mon, 5 Aug 2002 11:12:59 -0400 (EDT) Received: (qmail 3666 invoked from network); 5 Aug 2002 15:12:58 -0000 Received: from pc-00112 (HELO poliac.com) (192.168.1.112) by gw.poliac.com (192.168.1.1) with ESMTP; 05 Aug 2002 15:12:58 -0000 Message-ID: <3D4E9626.4030600@poliac.com> Date: Mon, 05 Aug 2002 10:13:42 -0500 From: Charles Steaderman User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [xml] Porting libxml2 to embedded system Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: I searched the archives for information on porting libxml to embedded systems and could not fond anyting useful. Is there somewhere better that I could look for a procedure for porting? I am compiling under Cygwin using ARM gcc. I tried configure for target=arm-rtems-gcc and the script gets stuck validating the compiler (I know that it works -- an exe file is generated for conftest.c). In addition, some of the "configurable" parameters (use of iconv for example) do not seem to be affected by configure options, I needed to edit xmlversion.h by hand :-( . Any direction would be greatly appreciated! Thanks, - Charlie -- Charlie Steaderman charlies@poliac.com VP Engineering Poliac Research Corporation Phone: 952.707.6245 Cel: 612.242.6364 From ocrush1@yahoo.com Tue Aug 6 19:21:46 2002 Return-Path: Delivered-To: xml@gnome.org Received: from web40309.mail.yahoo.com (web40309.mail.yahoo.com [66.218.78.88]) by mail.gnome.org (Postfix) with SMTP id E7367186BA for ; Tue, 6 Aug 2002 19:21:45 -0400 (EDT) Message-ID: <20020806232145.21622.qmail@web40309.mail.yahoo.com> Received: from [204.250.1.2] by web40309.mail.yahoo.com via HTTP; Tue, 06 Aug 2002 16:21:45 PDT Date: Tue, 6 Aug 2002 16:21:45 -0700 (PDT) From: OrangeCrush To: xml@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1773140375-1028676105=:21307" Subject: [xml] Invalid Loader @ compile time Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: --0-1773140375-1028676105=:21307 Content-Type: text/plain; charset=us-ascii Hello, I am currently trying to create a shared library on Hpux B.11.00 with the libxml support. The libxml library needs to be linked statically. But when I do this with the linker(ld) it gives me the following error. /usr/ccs/bin/ld -b -o jsinghworkarea/xml-1_0/bin/bin.hps700/option_routines.sl jsinghworkarea/xml-1_0/bin/bin.hps700/object/option_routines.o jsinghworkarea/xml-1_0/bin/bin.hps700/libxml2.a /usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "$00000130" in input file "jsinghworkarea/xml-1_0/bin/bin.hps700/libxml2.a(parserInternals.o)" Any ideas. Thanks, Jasmit Singh --------------------------------- Do You Yahoo!? Yahoo! Health - Feel better, live better --0-1773140375-1028676105=:21307 Content-Type: text/html; charset=us-ascii

Hello,

I am currently trying to create a shared library on Hpux B.11.00 with the libxml support.  The libxml library needs to be linked statically. But when I do this with the linker(ld) it gives me the following error. 

/usr/ccs/bin/ld   -b   -o jsinghworkarea/xml-1_0/bin/bin.hps700/option_routines.sl jsinghworkarea/xml-1_0/bin/bin.hps700/object/option_routines.o  jsinghworkarea/xml-1_0/bin/bin.hps700/libxml2.a    
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "$00000130" in input file "jsinghworkarea/xml-1_0/bin/bin.hps700/libxml2.a(parserInternals.o)"

Any ideas.

Thanks,

Jasmit Singh

 



Do You Yahoo!?
Yahoo! Health - Feel better, live better --0-1773140375-1028676105=:21307-- From stephen@suntail.net Wed Aug 7 05:17:33 2002 Return-Path: Delivered-To: xml@gnome.org Received: from pisces.suntail.net (asbestos.suntail.net [193.192.202.30]) by mail.gnome.org (Postfix) with ESMTP id D20C718557 for ; Wed, 7 Aug 2002 05:17:32 -0400 (EDT) Received: from [212.23.28.41] by pisces.bubble.com (NTMail 5.03.0001/KW0301.00.b41453a0) with ESMTP id jfnkdaaa for xml@gnome.org; Wed, 7 Aug 2002 10:26:05 +0100 Message-ID: <012a01c23df3$394c3c80$1003a8c0@djelibebi> From: "stephen lord" To: References: <20020806232145.21622.qmail@web40309.mail.yahoo.com> Date: Wed, 7 Aug 2002 10:17:16 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: [xml] Strange behaviour in xmlNanoHTTP Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: I am having a very strange problem retrieving a wsdl document across the net using xmlNanoHTTP The URL in question is: http://nagoya.apache.org:5049/axis/services/echoA?wsdl retrieved through browser it looks like this: .... .... retrieved through: ctxt = xmlNanoHTTPMethod( "http://nagoya.apache.org:5049/axis/services/echoA?wsdl", "GET", content, &contentType, headers, 0 ); where content, contentType and headers are all null char* . or: doc = xmlParseFile( "http://nagoya.apache.org:5049/axis/services/echoA?wsdl" ); I get this: .... .... Note the missing ':5049' port after the hostname ???? An alternative url, also with a port number: http://soap.systinet.net:6070/InteropService/ retrieved with xmlNanoHTTP methods as above seems to work fine. The only difference I can see is the ?wsdl on the end of the http://nagoya.apache.org:5049/axis/services/echoA?wsdl but I'm really in the dark here. Stephen From pansj@cml.ca Wed Aug 7 12:16:01 2002 Return-Path: Delivered-To: xml@gnome.org Received: from bones.cml.ca (unknown [207.139.237.30]) by mail.gnome.org (Postfix) with ESMTP id C0453190EA for ; Wed, 7 Aug 2002 12:16:00 -0400 (EDT) Received: from pansj ([192.1.2.46]) by bones.cml.ca (8.8.8+Sun/8.8.8) with SMTP id LAA20867 for ; Wed, 7 Aug 2002 11:49:26 -0400 (EDT) Message-ID: <001101c23e2d$b61560e0$2e0201c0@cml.ca> Reply-To: "Shaojing Pan" From: "Shaojing Pan" To: Date: Wed, 7 Aug 2002 12:15:56 -0400 Organization: cml MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000E_01C23E0C.2ED90760" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Subject: [xml] messy xmlTextChild output format Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C23E0C.2ED90760 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am working on Windows BorlandC++ and Solaris Forte. And I am trying to = generate a xml file by DOM API. This is a snippet of my code: pXmlTableNode =3D xmlNewChild( pXmlRootNode, NULL, "Table", NULL ); pXmlAttr =3D xmlSetProp( pXmlTableNode, "TblName", "cmClients" ); pXmlNode =3D xmlNewTextChild( pXmlTableNode, NULL, "clientId", "12" = ); pXmlNode =3D xmlNewChild( pXmlTableNode, NULL, "providerNumber", = "262162" ); xmlSaveFormatFile( "test.xml", pXmlDoc, 4); and the following is the part of xml file which is generated from this = codes. =20 12 262162
And I use the same code to run on UNIX(Solaris), the xml file is more = beautiful which is just what I want: =20 12262162
So I think I must have missed some kind of setting on Windows, what is = it, how to set?? =20 Thank you very much in advance =20 Pan ------=_NextPart_000_000E_01C23E0C.2ED90760 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am working on Windows BorlandC++ and = Solaris=20 Forte. And I am trying to generate a xml file by DOM API.
 
This is a snippet of my = code:
 
    pXmlTableNode =3D=20 xmlNewChild(  pXmlRootNode, NULL, "Table", NULL = );
   =20 pXmlAttr =3D xmlSetProp( pXmlTableNode, "TblName", "cmClients" = );
 
    pXmlNode =3D=20 xmlNewTextChild(  pXmlTableNode, NULL, "clientId", "12" = );
    pXmlNode =3D xmlNewChild(  = pXmlTableNode, NULL, "providerNumber", "262162" );
    xmlSaveFormatFile(=20 "test.xml",  pXmlDoc, 4);
and the following is the part of xml = file which is=20 generated from this codes.
 
  <Table=20 TblName=3D"cmClients">
   =20 <clientId>
12
   =20 </clientId>
   =20 <providerNumber>
262162
   =20 </providerNumber>
  </Table>

 
And I use the same code to run on = UNIX(Solaris),=20 the xml file is more beautiful which is just what I want:
 
  = <Table=20 TblName=3D"cmClients">
   =20 <clientId>12</clientId>
   =20 <providerNumber>262162</providerNumber>
 =20 </Table>
So = I think I must have=20 missed some kind of setting on Windows, what is it, how to=20 set??
 
Thank you = very much in=20 advance
 
Pan
------=_NextPart_000_000E_01C23E0C.2ED90760-- From breese@mail1.stofanet.dk Wed Aug 7 12:24:47 2002 Return-Path: Delivered-To: xml@gnome.org Received: from mail1.stofanet.dk (mail1.stofanet.dk [212.10.10.6]) by mail.gnome.org (Postfix) with SMTP id 96D14190D6 for ; Wed, 7 Aug 2002 12:24:46 -0400 (EDT) Received: (qmail 7140 invoked from network); 7 Aug 2002 16:24:45 -0000 Received: from pc103229.stofanet.dk (HELO mail1.stofanet.dk) (212.10.34.229) by mail1.stofanet.dk with SMTP; 7 Aug 2002 16:24:45 -0000 Message-ID: <3D514994.74D360A1@mail1.stofanet.dk> Date: Wed, 07 Aug 2002 16:23:48 +0000 From: Bjorn Reese Organization: Hyperspace Academy X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.7 i686) X-Accept-Language: en MIME-Version: 1.0 To: OrangeCrush Cc: xml@gnome.org Subject: Re: [xml] Invalid Loader @ compile time References: <20020806232145.21622.qmail@web40309.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: OrangeCrush wrote: > I am currently trying to create a shared library on Hpux B.11.00 with the > libxml support. The libxml library needs to be linked statically. But when I > do this with the linker(ld) it gives me the following error. Make sure that libxml is compiled as position-independent code. Use -fPIC with gcc, and +Z with HP's aCC compiler (I think... check the compiler documentation.) From liyanage@access.ch Wed Aug 7 16:48:24 2002 Return-Path: Delivered-To: xml@gnome.org Received: from relay02.cablecom.net (relay02.cablecom.net [62.2.33.102]) by mail.gnome.org (Postfix) with ESMTP id 6C22B18439 for ; Wed, 7 Aug 2002 16:48:23 -0400 (EDT) Received: from mail.swissonline.ch (mail.swissonline.ch [62.2.32.83]) by relay02.cablecom.net (8.11.6/8.11.4/SOL/AWF/MXRELAY/06072001) with ESMTP id g77KmMZ04285 for ; Wed, 7 Aug 2002 22:48:22 +0200 (CEST) Received: from primavera.futurelab.ch (dclient217-162-232-196.hispeed.ch [217.162.232.196]) by mail.swissonline.ch (8.11.6/8.11.4/MSOL-2.30/21-Dec-2000) with ESMTP id g77KmMm29054 for ; Wed, 7 Aug 2002 22:48:22 +0200 (MET DST) Date: Wed, 7 Aug 2002 22:48:20 +0200 Mime-Version: 1.0 (Apple Message framework v543) Content-Type: multipart/mixed; boundary=Apple-Mail-8-1053976394 From: Marc Liyanage To: xml@gnome.org Message-Id: <01BFC26E-AA47-11D6-B4C5-00039388D718@access.ch> X-Mailer: Apple Mail (2.543) Subject: [xml] Patch for boolean attributes in HTML output mode / libxml HTML dump code Sender: xml-admin@gnome.org Errors-To: xml-admin@gnome.org X-BeenThere: xml@gnome.org X-Loop: xml@gnome.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: --Apple-Mail-8-1053976394 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi folks, I was wondering if you would accept the attached small patch for libxml2 into the main distribution. This will probably influence if we will use it (the patch, not libxml) ourselves in our current project. What it does is it causes the HTML output dump code to convert boolean HTML attributes like