[xsd-users] RE: xsd-users Digest, Vol 111, Issue 15

Haydar Ozan KANTARCI haydar.kantarci at hotmail.com
Fri Oct 31 08:46:00 EDT 2014


Hello Boris,

I am currently trying to convert my XSD project from
VS2008 to QT Creator. I had difficulties with namespace configurations, but was
able to overcome with your help. Now, there is a problem with the
parsing of Arabic characters from my XML file. 

 

<label opaque="true" z="0"
y="736" x="8" width="608" height="64"
foreColor="#FFFFFF" bindCategory="STATIC_TEXT"
bindParam="{ar_sa=ملاحظة
المعلومات;en_us=Remark
Information}" bind="" bgColor="#FF0000"
compId="Label9" alignment="CENTER">

               
<border thickness="2" color="#00FF0F" />

                <style
fontSize="36" fontStyle="1" backColor="#FF0000"
fontColor="#FFFFFF" font="Arial"
dataAlignment="CENTER"/>

               
<staticData lang="en_us">Remark
Information</staticData>

               
<staticData lang="ar_sa">ملاحظة
المعلومات</staticData>

 </label>

This is a part of my XML. I can pull any string with no
problem, except Arabic characters. Those come as corrupted. Any help would be appreciated.
Also, if there is any kind of documentaries about converting a VS2008 XSD project
into QT creator project would be great help. 

Thanks for your time,

Regards.Haydar Ozan KANTARCI

> Date: Tue, 28 Oct 2014 12:00:04 -0400
> From: xsd-users-request at codesynthesis.com
> Subject: xsd-users Digest, Vol 111, Issue 15
> To: xsd-users at codesynthesis.com
> 
> Send xsd-users mailing list submissions to
> 	xsd-users at codesynthesis.com
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://codesynthesis.com/mailman/listinfo/xsd-users
> or, via email, send a message with subject or body 'help' to
> 	xsd-users-request at codesynthesis.com
> 
> You can reach the person managing the list at
> 	xsd-users-owner at codesynthesis.com
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of xsd-users digest..."
> 
> 
> Today's Topics:
> 
>    1. XSD xmlns:tns issue (Haydar Ozan KANTARCI)
>    2. Re: XSD xmlns:tns issue (Boris Kolpackov)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Tue, 28 Oct 2014 09:39:25 +0200
> From: Haydar Ozan KANTARCI <haydar.kantarci at hotmail.com>
> Subject: [xsd-users] XSD xmlns:tns issue
> To: "xsd-users at codesynthesis.com" <xsd-users at codesynthesis.com>
> Message-ID: <SNT153-W525012C8F39681E922C45EF9F0 at phx.gbl>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hello,i am having problems defining my tns type from XSD. My xsd header looks like this;<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.model.xml.design.page.cemil.aero/" xmlns:tns="http://www.model.xml.design.page.cemil.aero/" elementFormDefault="qualified">however, when i generate the hxx and cxx files, the parameters with "tns" types doesnt seem to work.
>  <complexType name="pageListType">    <sequence>      <element name="page" type="tns:pageType"        maxOccurs="unbounded" minOccurs="1">      </element>      <element name="emergency" type="tns:emergencyType"        maxOccurs="1" minOccurs="0">      </element>      <element name="parameter" type="tns:parameterType" maxOccurs="1" minOccurs="0"></element>    </sequence>  </complexType>
> My launcher code seems like this;
> 	char * in = "hello.xml"; 	using namespace xercesc;        XMLPlatformUtils::Initialize ();  try  {    using namespace TavMap;	xml_schema::properties props;	props.no_namespace_schema_location("hello.xsd");	auto_ptr <pageListType> plPtr ( pageList(in, xml_schema::flags::dont_validate, props));  }
> i used the custom build rules to define the namespace already, however i am not perfectly sure how to handle xmlns:tns. Thanks for your time,Regards,Haydar 		 	   		  
> 
> ------------------------------
> 
> Message: 2
> Date: Tue, 28 Oct 2014 12:51:57 +0200
> From: Boris Kolpackov <boris at codesynthesis.com>
> Subject: Re: [xsd-users] XSD xmlns:tns issue
> To: Haydar Ozan KANTARCI <haydar.kantarci at hotmail.com>
> Cc: "xsd-users at codesynthesis.com" <xsd-users at codesynthesis.com>
> Message-ID: <boris.20141028124906 at codesynthesis.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi Haydar,
> 
> Haydar Ozan KANTARCI <haydar.kantarci at hotmail.com> writes:
> 
> > props.no_namespace_schema_location("hello.xsd");
> 
> Your schema has a target namespace so you should use schema_location().
> 
> 
> > i used the custom build rules to define the namespace already, 
> > however i am not perfectly sure how to handle xmlns:tns. 
> 
> What are you trying to achieve and what exactly doesn't work?
> 
> Boris
> 
> 
> 
> ------------------------------
> 
> _______________________________________________
> xsd-users mailing list
> xsd-users at codesynthesis.com
> http://codesynthesis.com/mailman/listinfo/xsd-users
> 
> 
> End of xsd-users Digest, Vol 111, Issue 15
> ******************************************
 		 	   		  


More information about the xsd-users mailing list