<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>c-dev@xerces.apache.org Archives</title>
<link rel="self" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/?format=atom"/>
<link href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/"/>
<id>http://mail-archives.apache.org/mod_mbox/xerces-c-dev/</id>
<updated>2009-12-07T22:31:11Z</updated>
<entry>
<title>[jira] Closed: (XERCESC-1899) XML namespaces with more than one hyphens appear to be broken during validating parse</title>
<author><name>&quot;Ben Griffin (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200912.mbox/%3c192480165.1259925740699.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c192480165-1259925740699-JavaMail-jira@brutus%3e</id>
<updated>2009-12-04T11:22:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ben Griffin closed XERCESC-1899.
--------------------------------

    Resolution: Invalid

I have found counter examples to this.
There is something funny going on - so I will do more analysis before posting again.

&gt; XML namespaces with more than one hyphens appear to be broken during validating parse
&gt; -------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1899
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1899
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;            Reporter: Ben Griffin
&gt;   Original Estimate: 3h
&gt;  Remaining Estimate: 3h
&gt;
&gt; This appears to cause the Parser to attempt to parse the document as a DTD document rather
than as a schema driven document.
&gt; An example namespace causing trouble is http://www.ns.net/xxx-www-zzz 
&gt; Note that http://www.ns.net/xxx-www works fine, as does http://www.ns.net/xxx_www_zzz


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Created: (XERCESC-1899) XML namespaces with more than one hyphens appear to be broken during validating parse</title>
<author><name>&quot;Ben Griffin (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200912.mbox/%3c563135250.1259925380993.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c563135250-1259925380993-JavaMail-jira@brutus%3e</id>
<updated>2009-12-04T11:16:20Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
XML namespaces with more than one hyphens appear to be broken during validating parse
-------------------------------------------------------------------------------------

                 Key: XERCESC-1899
                 URL: https://issues.apache.org/jira/browse/XERCESC-1899
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (XML Schema)
            Reporter: Ben Griffin


This appears to cause the Parser to attempt to parse the document as a DTD document rather
than as a schema driven document.

An example namespace causing trouble is http://www.ns.net/xxx-www-zzz 
Note that http://www.ns.net/xxx-www works fine, as does http://www.ns.net/xxx_www_zzz 



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Xerces-C++ 3.1.0 RC1 released</title>
<author><name>Boris Kolpackov &lt;boris@codesynthesis.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3cboris.20091124151118@codesynthesis.com%3e"/>
<id>urn:uuid:%3cboris-20091124151118@codesynthesis-com%3e</id>
<updated>2009-11-24T13:14:01Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Hi,

Xerces-C++ 3.1.0 release candidate 1 is available for download:

http://people.apache.org/builds/xerces/c/

Please test and report back any problems you find. The plan is to allow
slightly more than a month for testing and, provided no serious problems 
are uncovered, release the final 3.1.0 in early January 2010.

Major new features and improvement in this release include:

  * Working multi-import support. The support for handling multiple import
    declarations with the same target namespaces has been improved and
    thoroughly tested. Furthermore, the same logic was extended to
    loadGrammar and the schemaLocation attributes so that you can load
    several schemas with the same namespace and/or "add" more declarations
    with the schemaLocation attributes. To enable this feature, set the
    XMLUni::fgXercesHandleMultipleImports feature/parameter to true.
    Starting with this release all the tests and examples have multi-import
    support enabled by default.

  * New property, XMLUni::fgXercesLowWaterMark, allows to configure the
    parser buffer low water mark. In particular, setting this value to 0
    disables data caching in the parser which can be useful if you want
    the SAX events to be dispatched as soon as the data is available.

  * DOMLSParser::parseWithContext implementation. In particular, this 
    functionality allows one to parse a document fragment with missing
    namespace declarations as long as the context document provides them.

  * Improved performance and reduced memory footprint when validating with
    large maxOccurs values. If available, the SSE2 instructions are used to 
    further speedup this case.

  * Improved scalability of the XML Schema identity checking (key, keyref,
    and unique).

  * Multiple XML Schema conformance fixes.

  * More robust external library detection (libcurl and ICU). In particular,
    the build system no longer tries to inject any additional paths such as
    /usr or /usr/local. 

  * Compilation of the ICU message loader resources no longer depends on
    the ICU implementation details.
  
The following bugs and security vulnerabilities have been fixed in this
release compared to the previous release (3.0.1):

CVE-2009-1885, XERCESC-646, XERCESC-697, XERCESC-809, XERCESC-961,
XERCESC-1021, XERCESC-1051, XERCESC-1246, XERCESC-1249, XERCESC-1263,
XERCESC-1380, XERCESC-1480, XERCESC-1481, XERCESC-1507, XERCESC-1568,
XERCESC-1583, XERCESC-1607, XERCESC-1659, XERCESC-1703, XERCESC-1707,
XERCESC-1713, XERCESC-1716, XERCESC-1717, XERCESC-1747, XERCESC-1748,
XERCESC-1759, XERCESC-1808, XERCESC-1826, XERCESC-1831, XERCESC-1833,
XERCESC-1847, XERCESC-1852, XERCESC-1856, XERCESC-1858, XERCESC-1863,
XERCESC-1866, XERCESC-1867, XERCESC-1868, XERCESC-1869, XERCESC-1870,
XERCESC-1871, XERCESC-1872, XERCESC-1874, XERCESC-1878, XERCESC-1882,
XERCESC-1892, XERCESC-1893, XERCESC-1894, XERCESC-1896 XERCESC-1898

Note to the committers: please refrain from making any changes to the
trunk except for fixing critical problems found during testing. If you 
would like to continue working towards future releases, please create 
a temporary branch.

Boris

-- 
Boris Kolpackov, Code Synthesis        http://codesynthesis.com/~boris/blog
Open-source XML data binding for C++   http://codesynthesis.com/products/xsd
XML data binding for embedded systems  http://codesynthesis.com/products/xsde
Command line interface to C++ compiler http://codesynthesis.com/projects/cli

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



</pre>
</div>
</content>
</entry>
<entry>
<title>Xerces 64-bit build issues on Solaris Sparc and X86</title>
<author><name>Vinutha Nagaraju &lt;Vinutha.Nagaraju@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B0B858B.3000901@sun.com%3e"/>
<id>urn:uuid:%3c4B0B858B-3000901@sun-com%3e</id>
<updated>2009-11-24T07:04:43Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I am unable to build xerces 2.6.0 in 64-bit mode on SPARC and x86 platform.
I have used "./runConfigure -p solaris -c cc -x CC " to configure 32-bit 
on SPARC using sunstudio compiler to build. That works fine. However I 
am not sure why 64-bit doesn't work.
For SPARC, I tried following options in runConfigure, which returned an 
ELF class error during link time.

./runConfigure -p solaris -c cc -x CC -l -xarch=v9

ld: fatal: file SOLARIS/ASCIIRangeFactory.o: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to 
/home/vn125969/xerces/xe
rces-c-src_2_6_0/lib/libxerces-c.so.26.0
gmake[1]: *** 
[/home/vn125969/xerces/xerces-c-src_2_6_0/lib/libxerces-c.so.26.0]
 Error 1

same with the Solaris X86 build as well.

What is missing in the above approach. Kindly help.

Thanks,
Vinu


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XERCESC-1368) Catch-all handler are problematic on Windows</title>
<author><name>&quot;David Bertoni (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c13101538.1258915899599.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c13101538-1258915899599-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T18:51:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XERCESC-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781187#action_12781187
] 

David Bertoni commented on XERCESC-1368:
----------------------------------------

This is not a problem with Visual Studio 2005 and later, so perhaps it's not worth doing any
more work to fix it.

&gt; Catch-all handler are problematic on Windows
&gt; --------------------------------------------
&gt;
&gt;                 Key: XERCESC-1368
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1368
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Miscellaneous
&gt;    Affects Versions: 3.0.1
&gt;         Environment: Windows XP with Visual Studio .NET 2003
&gt;            Reporter: David Bertoni
&gt;            Assignee: David Bertoni
&gt;         Attachments: patch.txt
&gt;
&gt;
&gt; Exception handlers of the form "catch(...)" are causing problems in our product code
on Windows, because they are catching hardware exceptions, such as access violations.
&gt; There is an article in the MSDN Knowledge Base that describes how this has changed between
Visual Studio 6, and Visual Studio .NET:
&gt; http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang/html/_core_exception_handling.3a_.default_synchronous_exception_model.asp
&gt; However, my experience with Xerces-C using Visual Studio .NET 2003 is that hardware exceptions
(asynchronous exceptions, in the Microsoft parlance) are still being caught in Xerces-C in
catch-all handlers.  This is problematic because it interferes with normal diagnosis of hardware
faults, and can lead to code being executed in Xerces-C when the system is in an unknown state.
 It is also a makes it difficult to write code that will behave the same on other platforms.
&gt; Looking into the code reveals multiple places where a catch-all handler resets some object
(or some other similar behavior), then rethrows the same exception.  I'd like to propose that
we try to eliminate as many of these catch handlers as possible by replaces these actions
with stack objects that perform these actions automatically whether or not an exception is
thrown (auto_ptr-like behavior).  This will also have the benefit of simplifying the code.
 From a "philosophical" perspective, I also think its better for code to catch the exceptions
it's concerned with, and avoid catch-all handlers except when absolutely necessary.
&gt; I will attach a proposed patch for a class that does this sort of thing, and some modified
code that uses this class.  I would also like to see if anyone else has observed this behavior
in their Windows applications.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XERCESC-1866) Crash with regular expression</title>
<author><name>&quot;David Bertoni (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c603213725.1258915779640.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c603213725-1258915779640-JavaMail-jira@brutus%3e</id>
<updated>2009-11-22T18:49:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XERCESC-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12781186#action_12781186
] 

David Bertoni commented on XERCESC-1866:
----------------------------------------

Sorry, I've been traveling for work, and haven't been able to to much for the last month.
Yes, this is a temporary fix, but the permanent fix will break binary and API compatibility,
so it will need to wait.

&gt; Crash with regular expression
&gt; -----------------------------
&gt;
&gt;                 Key: XERCESC-1866
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1866
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Utilities
&gt;         Environment: Windows XP, Visual Studio 2005
&gt;            Reporter: Alexander Hartmann
&gt;            Assignee: David Bertoni
&gt;             Fix For: 3.2.0, 4.0.0
&gt;
&gt;         Attachments: XERCESC-1866.patch
&gt;
&gt;
&gt; when I run the following test code my application crashes on the second regEx.matches
call:
&gt; {
&gt;   XMLBuffer optionsBuf;
&gt;   optionsBuf.append('i');
&gt;   optionsBuf.append('H');
&gt;   RegularExpression regEx(L"^\\W*Excel\\W*$", optionsBuf.getRawBuffer());
&gt;   regEx.matches("Excel");
&gt; }
&gt; {
&gt;   XMLBuffer optionsBuf;
&gt;   optionsBuf.append('i');
&gt;   optionsBuf.append('H');
&gt;   RegularExpression regEx(L"^\\W*Excel\\W*$", optionsBuf.getRawBuffer());
&gt;   regEx.matches("Excel");
&gt; }
&gt; some details I found during debugging:
&gt; - there is an instance of RangeToken where I have no idea where this is created. I've
set a breakpoint in the constructor but the debugger does not stop.
&gt; - when RangeToken::getCaseInsensitiveToken is called a new RangeToken is created and
stored in fCaseIToken
&gt; - when parsing is finished the newly created RangeToken is deleted (through ~RegularExpression
-&gt; ~TokenFactory), but the original RangeToken (where I don't know where it is created)
still exists and references the deleted RangeToken in fCaseIToken
&gt; - the next time RangeToken::getCaseInsensitiveToken is called the invalid reference fCaseIToken
is returned and this leads to a crash when it is accessed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1881) xsd sequence validation reporting errors too late</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c249575885.1258727979816.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c249575885-1258727979816-JavaMail-jira@brutus%3e</id>
<updated>2009-11-20T14:39:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1881?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1881:
-------------------------------------

    Fix Version/s:     (was: 3.1.0)
                   4.0.0
                   3.2.0

Rescheduling to 3.2.0/4.0.0.

&gt; xsd sequence validation reporting errors too late
&gt; -------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1881
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1881
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.0.1
&gt;         Environment: Windows Visaa 32, Xerces 3.0.1
&gt;            Reporter: Brian Hoyt
&gt;             Fix For: 3.2.0, 4.0.0
&gt;
&gt;
&gt; Validation using the following xsd and xml results in two different results between XercesJ
and XercesC++.
&gt; For java I get the error reporting the sequence error right after the processing of element
&lt;url&gt; because &lt;name&gt;
&gt; cannot appear after &lt;url&gt;. But for C++ the error is not reported until the last
element within &lt;person&gt; has been
&gt; processed. This obviously isn't correct because by that time it is too late. The way
Java is reporting it seems to 
&gt; be correct so that I can stop processing the xml file. 
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'&gt;
&gt;    &lt;xs:element name="person"&gt;
&gt;        &lt;xs:complexType&gt;
&gt;            &lt;xs:sequence&gt;
&gt;                  &lt;xs:element name="name"  type='xs:string' minOccurs='0' maxOccurs='1'/&gt;
&gt;                  &lt;xs:element name="email"  type='xs:string' minOccurs='0' maxOccurs='unbounded'/&gt;
&gt;                  &lt;xs:element name="url"    type='xs:string' minOccurs='0' maxOccurs='unbounded'/&gt;
&gt;                  &lt;xs:element name="link"   type='xs:string' minOccurs='0' maxOccurs='1'/&gt;
&gt;            &lt;/xs:sequence&gt;
&gt;        &lt;/xs:complexType&gt;
&gt;     &lt;/xs:element&gt;
&gt; &lt;/xs:schema&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;            xsi:noNamespaceSchemaLocation='foo.xsd'&gt;
&gt;     &lt;url&gt;www.foo.com&lt;/url&gt;
&gt;     &lt;name&gt;Boss&lt;/name&gt;
&gt;     &lt;email&gt;chief@foo.com&lt;/email&gt;
&gt;     &lt;link/&gt;
&gt; &lt;/person&gt;
&gt; The output from running the XercesJ 2.9.1 Writer sample on the above xsd/xml is:
&gt; &lt;person xsi:noNamespaceSchemaLocation="foo.xsd"&gt;
&gt;     &lt;url&gt;www.foo.com&lt;/url&gt;
&gt;     [Error] foo.xml:5:11: cvc-complex-type.2.4.a: Invalid content was found star
&gt; ting with element 'name'. One of '{url, link}' is expected.
&gt; &lt;name&gt;Boss&lt;/name&gt;
&gt;     &lt;email&gt;chief@foo.com&lt;/email&gt;
&gt;     &lt;link&gt;&lt;/link&gt;
&gt; &lt;/person&gt;
&gt; The output from running the XercesC++ 3.0.1 
&gt; &lt;?xml version="1.0" encoding="LATIN1"?&gt;
&gt; &lt;person xsi:noNamespaceSchemaLocation="foo.xsd"&gt;
&gt;     &lt;url&gt;www.foo.com&lt;/url&gt;
&gt;     &lt;name&gt;Boss&lt;/name&gt;
&gt;     &lt;email&gt;chief@foo.com&lt;/email&gt;
&gt;     &lt;link&gt;&lt;/link&gt;
&gt; Error at file C:\xerces-3_0_1\bin/foo.xml, line 8, char 10
&gt;   Message: element 'name' is not allowed for content model '((name,email,url),li
&gt; nk)'
&gt; &lt;/person&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Alberto Massari &lt;amassari@datadirect.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B0674C3.2020207@datadirect.com%3e"/>
<id>urn:uuid:%3c4B0674C3-2020207@datadirect-com%3e</id>
<updated>2009-11-20T10:51:47Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Let's start from scratch:
1) download 
http://archive.apache.org/dist/xml/xerces-c/Xerces-C_2_6_0/xerces-c-src_2_6_0.zip
2) unzip to a new folder
3) start VC6, open &lt;xerces&gt;/Projects/Win32/VC6/xerces-all/xerces-all.dsw
4) click on the Build menu, select Batch Build then click Rebuild All

Alberto

Vinutha Nagaraju wrote:
&gt; Alberto Massari wrote:
&gt;&gt; xerces-c_2.lib and xerces-depdom_2.lib are the Release builds; in 
&gt;&gt; order to select the release build you can use the combo box in the 
&gt;&gt; toolbar. If you don't see it, right click on the toolbar area and 
&gt;&gt; select it from the list (usually it's the mini-build toolbar that is 
&gt;&gt; displayed, the one with just the buttons to start the build)
&gt;&gt;
&gt; I have attached the screen shot of my workspace. I used the mini tool 
&gt; bar as u suggested even then, it doesn't work.
&gt; Basically  in the output window, it says no configuration specified 
&gt; hence defaulting to debug build.
&gt;
&gt; When I loaded the Xerceslib.dsp, there was warning that this project 
&gt; wasn't built using Developer studio, so it would create another 
&gt; Makefile as a wrapper to the existing one. Not sure because of that it 
&gt; if something is wrong. I see that after building the debug bits, there 
&gt; three new files created.
&gt; 1. xerceslib.opt
&gt; 2. xerceslib.dsw
&gt; 3. xerceslib1.dsp
&gt; 4. xerceslib1.plg
&gt; Is there a way I could edit the Makefile manually to build release 
&gt; bits by default ?
&gt;
&gt; THanks,
&gt; Vinu
&gt;
&gt;
&gt;&gt; Alberto
&gt;&gt;
&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt; Thanks for the quick response.
&gt;&gt;&gt; I am not able to build the release version.
&gt;&gt;&gt; In MSVC, under Build tab, I selected "Set Active Configuration" to 
&gt;&gt;&gt; "Release". But it still builds debug version.
&gt;&gt;&gt; any clue ?
&gt;&gt;&gt; One more question, In the past someone else in my team had built 
&gt;&gt;&gt; windows and in his workspace I see two extra libraries 
&gt;&gt;&gt; "xerces-c_2.lib" and "xerces-depdom_2.lib". This is missing in my 
&gt;&gt;&gt; workspace, I only have xerces-c_2D.lib and Xerces-depdom_2D.lib.
&gt;&gt;&gt; Are these release and debug bits by any chance ?
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; Vinu
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Alberto Massari wrote:
&gt;&gt;&gt;&gt; That's the "debug" folder; you should also select the "Release" 
&gt;&gt;&gt;&gt; configuration, and build it. The output for that configuration will 
&gt;&gt;&gt;&gt; be in the Build/VC6/Release folder.
&gt;&gt;&gt;&gt; Also, if you use the deprecated DOM, you should select the 
&gt;&gt;&gt;&gt; DeprecatedDOM project, right click to get the popup menu, and 
&gt;&gt;&gt;&gt; choose Build
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Alberto
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt;&gt;&gt;&gt;&gt; I have followed the instructions provided in Readme.html. I have 
&gt;&gt;&gt;&gt;&gt; opened the Project
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt;&gt;&gt;&gt;&gt; errors, I am not sure if the final bits created is what is expected.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.pdb
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.ilk
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.dll
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Can someone please confirm  if the above files are windows 
&gt;&gt;&gt;&gt;&gt; expected files ? If not, what is missing and how to built it ?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt; Vinu
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ------------------------------------------------------------------------
&gt;
&gt; ------------------------------------------------------------------------
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Vinutha Nagaraju &lt;Vinutha.Nagaraju@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B067412.30901@sun.com%3e"/>
<id>urn:uuid:%3c4B067412-30901@sun-com%3e</id>
<updated>2009-11-20T10:48:50Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
I think I could resolve it. I manually ran nmake with CFG pointing to 
release.
That seems to go through now.

Thanks a lot for all the comments provided so far.
regards,
Vinu

Vinutha Nagaraju wrote:
&gt; Alberto Massari wrote:
&gt;&gt; xerces-c_2.lib and xerces-depdom_2.lib are the Release builds; in 
&gt;&gt; order to select the release build you can use the combo box in the 
&gt;&gt; toolbar. If you don't see it, right click on the toolbar area and 
&gt;&gt; select it from the list (usually it's the mini-build toolbar that is 
&gt;&gt; displayed, the one with just the buttons to start the build)
&gt;&gt;
&gt; I have attached the screen shot of my workspace. I used the mini tool 
&gt; bar as u suggested even then, it doesn't work.
&gt; Basically  in the output window, it says no configuration specified 
&gt; hence defaulting to debug build.
&gt;
&gt; When I loaded the Xerceslib.dsp, there was warning that this project 
&gt; wasn't built using Developer studio, so it would create another 
&gt; Makefile as a wrapper to the existing one. Not sure because of that it 
&gt; if something is wrong. I see that after building the debug bits, there 
&gt; three new files created.
&gt; 1. xerceslib.opt
&gt; 2. xerceslib.dsw
&gt; 3. xerceslib1.dsp
&gt; 4. xerceslib1.plg
&gt; Is there a way I could edit the Makefile manually to build release 
&gt; bits by default ?
&gt;
&gt; THanks,
&gt; Vinu
&gt;
&gt;
&gt;&gt; Alberto
&gt;&gt;
&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt; Thanks for the quick response.
&gt;&gt;&gt; I am not able to build the release version.
&gt;&gt;&gt; In MSVC, under Build tab, I selected "Set Active Configuration" to 
&gt;&gt;&gt; "Release". But it still builds debug version.
&gt;&gt;&gt; any clue ?
&gt;&gt;&gt; One more question, In the past someone else in my team had built 
&gt;&gt;&gt; windows and in his workspace I see two extra libraries 
&gt;&gt;&gt; "xerces-c_2.lib" and "xerces-depdom_2.lib". This is missing in my 
&gt;&gt;&gt; workspace, I only have xerces-c_2D.lib and Xerces-depdom_2D.lib.
&gt;&gt;&gt; Are these release and debug bits by any chance ?
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; Vinu
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Alberto Massari wrote:
&gt;&gt;&gt;&gt; That's the "debug" folder; you should also select the "Release" 
&gt;&gt;&gt;&gt; configuration, and build it. The output for that configuration will 
&gt;&gt;&gt;&gt; be in the Build/VC6/Release folder.
&gt;&gt;&gt;&gt; Also, if you use the deprecated DOM, you should select the 
&gt;&gt;&gt;&gt; DeprecatedDOM project, right click to get the popup menu, and 
&gt;&gt;&gt;&gt; choose Build
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Alberto
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt;&gt;&gt;&gt;&gt; I have followed the instructions provided in Readme.html. I have 
&gt;&gt;&gt;&gt;&gt; opened the Project
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt;&gt;&gt;&gt;&gt; errors, I am not sure if the final bits created is what is expected.
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.pdb
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.ilk
&gt;&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 
&gt;&gt;&gt;&gt;&gt; xerces-c_2_6D.dll
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Can someone please confirm  if the above files are windows 
&gt;&gt;&gt;&gt;&gt; expected files ? If not, what is missing and how to built it ?
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt;&gt; Vinu
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt;&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Vinutha Nagaraju &lt;Vinutha.Nagaraju@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B0665A6.2080901@sun.com%3e"/>
<id>urn:uuid:%3c4B0665A6-2080901@sun-com%3e</id>
<updated>2009-11-20T09:47:18Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Content-type: text/plain; CHARSET=US-ASCII; format=flowed
Content-transfer-encoding: 7BIT

Alberto Massari wrote:
&gt; xerces-c_2.lib and xerces-depdom_2.lib are the Release builds; in 
&gt; order to select the release build you can use the combo box in the 
&gt; toolbar. If you don't see it, right click on the toolbar area and 
&gt; select it from the list (usually it's the mini-build toolbar that is 
&gt; displayed, the one with just the buttons to start the build)
&gt;
I have attached the screen shot of my workspace. I used the mini tool 
bar as u suggested even then, it doesn't work.
Basically  in the output window, it says no configuration specified 
hence defaulting to debug build.

When I loaded the Xerceslib.dsp, there was warning that this project 
wasn't built using Developer studio, so it would create another Makefile 
as a wrapper to the existing one. Not sure because of that it if 
something is wrong. I see that after building the debug bits, there 
three new files created.
1. xerceslib.opt
2. xerceslib.dsw
3. xerceslib1.dsp
4. xerceslib1.plg
Is there a way I could edit the Makefile manually to build release bits 
by default ?

THanks,
Vinu


&gt; Alberto
&gt;
&gt; Vinutha Nagaraju wrote:
&gt;&gt; Thanks for the quick response.
&gt;&gt; I am not able to build the release version.
&gt;&gt; In MSVC, under Build tab, I selected "Set Active Configuration" to 
&gt;&gt; "Release". But it still builds debug version.
&gt;&gt; any clue ?
&gt;&gt; One more question, In the past someone else in my team had built 
&gt;&gt; windows and in his workspace I see two extra libraries 
&gt;&gt; "xerces-c_2.lib" and "xerces-depdom_2.lib". This is missing in my 
&gt;&gt; workspace, I only have xerces-c_2D.lib and Xerces-depdom_2D.lib.
&gt;&gt; Are these release and debug bits by any chance ?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Vinu
&gt;&gt;
&gt;&gt;
&gt;&gt; Alberto Massari wrote:
&gt;&gt;&gt; That's the "debug" folder; you should also select the "Release" 
&gt;&gt;&gt; configuration, and build it. The output for that configuration will 
&gt;&gt;&gt; be in the Build/VC6/Release folder.
&gt;&gt;&gt; Also, if you use the deprecated DOM, you should select the 
&gt;&gt;&gt; DeprecatedDOM project, right click to get the popup menu, and choose 
&gt;&gt;&gt; Build
&gt;&gt;&gt;
&gt;&gt;&gt; Alberto
&gt;&gt;&gt;
&gt;&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Hi,
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt;&gt;&gt;&gt; I have followed the instructions provided in Readme.html. I have 
&gt;&gt;&gt;&gt; opened the Project
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt;&gt;&gt;&gt; errors, I am not sure if the final bits created is what is expected.
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 
&gt;&gt;&gt;&gt; xerces-c_2_6D.pdb
&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 
&gt;&gt;&gt;&gt; xerces-c_2_6D.ilk
&gt;&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 
&gt;&gt;&gt;&gt; xerces-c_2_6D.dll
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Can someone please confirm  if the above files are windows expected 
&gt;&gt;&gt;&gt; files ? If not, what is missing and how to built it ?
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt; Thanks,
&gt;&gt;&gt;&gt; Vinu
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; ---------------------------------------------------------------------
&gt;&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Alberto Massari &lt;amassari@datadirect.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B065316.8030806@datadirect.com%3e"/>
<id>urn:uuid:%3c4B065316-8030806@datadirect-com%3e</id>
<updated>2009-11-20T08:28:06Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
xerces-c_2.lib and xerces-depdom_2.lib are the Release builds; in order 
to select the release build you can use the combo box in the toolbar. If 
you don't see it, right click on the toolbar area and select it from the 
list (usually it's the mini-build toolbar that is displayed, the one 
with just the buttons to start the build)

Alberto

Vinutha Nagaraju wrote:
&gt; Thanks for the quick response.
&gt; I am not able to build the release version.
&gt; In MSVC, under Build tab, I selected "Set Active Configuration" to 
&gt; "Release". But it still builds debug version.
&gt; any clue ?
&gt; One more question, In the past someone else in my team had built 
&gt; windows and in his workspace I see two extra libraries 
&gt; "xerces-c_2.lib" and "xerces-depdom_2.lib". This is missing in my 
&gt; workspace, I only have xerces-c_2D.lib and Xerces-depdom_2D.lib.
&gt; Are these release and debug bits by any chance ?
&gt;
&gt; Thanks,
&gt; Vinu
&gt;
&gt;
&gt; Alberto Massari wrote:
&gt;&gt; That's the "debug" folder; you should also select the "Release" 
&gt;&gt; configuration, and build it. The output for that configuration will 
&gt;&gt; be in the Build/VC6/Release folder.
&gt;&gt; Also, if you use the deprecated DOM, you should select the 
&gt;&gt; DeprecatedDOM project, right click to get the popup menu, and choose 
&gt;&gt; Build
&gt;&gt;
&gt;&gt; Alberto
&gt;&gt;
&gt;&gt; Vinutha Nagaraju wrote:
&gt;&gt;&gt;
&gt;&gt;&gt; Hi,
&gt;&gt;&gt;
&gt;&gt;&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt;&gt;&gt; I have followed the instructions provided in Readme.html. I have 
&gt;&gt;&gt; opened the Project
&gt;&gt;&gt;
&gt;&gt;&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;&gt;&gt;
&gt;&gt;&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt;&gt;&gt; errors, I am not sure if the final bits created is what is expected.
&gt;&gt;&gt;
&gt;&gt;&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 xerces-c_2_6D.pdb
&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 
&gt;&gt;&gt; xerces-c_2_6D.ilk
&gt;&gt;&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 xerces-c_2_6D.dll
&gt;&gt;&gt;
&gt;&gt;&gt; Can someone please confirm  if the above files are windows expected 
&gt;&gt;&gt; files ? If not, what is missing and how to built it ?
&gt;&gt;&gt;
&gt;&gt;&gt; Thanks,
&gt;&gt;&gt; Vinu
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; ---------------------------------------------------------------------
&gt;&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt;&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;
&gt;


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Vinutha Nagaraju &lt;Vinutha.Nagaraju@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B064FCB.2030303@sun.com%3e"/>
<id>urn:uuid:%3c4B064FCB-2030303@sun-com%3e</id>
<updated>2009-11-20T08:14:03Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
Thanks for the quick response.
I am not able to build the release version.
In MSVC, under Build tab, I selected "Set Active Configuration" to 
"Release". But it still builds debug version.
any clue ?
One more question, In the past someone else in my team had built windows 
and in his workspace I see two extra libraries "xerces-c_2.lib" and 
"xerces-depdom_2.lib". This is missing in my workspace, I only have 
xerces-c_2D.lib and Xerces-depdom_2D.lib.
Are these release and debug bits by any chance ?

Thanks,
Vinu


Alberto Massari wrote:
&gt; That's the "debug" folder; you should also select the "Release" 
&gt; configuration, and build it. The output for that configuration will be 
&gt; in the Build/VC6/Release folder.
&gt; Also, if you use the deprecated DOM, you should select the 
&gt; DeprecatedDOM project, right click to get the popup menu, and choose 
&gt; Build
&gt;
&gt; Alberto
&gt;
&gt; Vinutha Nagaraju wrote:
&gt;&gt;
&gt;&gt; Hi,
&gt;&gt;
&gt;&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt;&gt; I have followed the instructions provided in Readme.html. I have 
&gt;&gt; opened the Project
&gt;&gt;
&gt;&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;&gt;
&gt;&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt;&gt; errors, I am not sure if the final bits created is what is expected.
&gt;&gt;
&gt;&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt;&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt;&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt;&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 xerces-c_2_6D.pdb
&gt;&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 xerces-c_2_6D.ilk
&gt;&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 xerces-c_2_6D.dll
&gt;&gt;
&gt;&gt; Can someone please confirm  if the above files are windows expected 
&gt;&gt; files ? If not, what is missing and how to built it ?
&gt;&gt;
&gt;&gt; Thanks,
&gt;&gt; Vinu
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;
&gt;
&gt; ---------------------------------------------------------------------
&gt; To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
&gt; For additional commands, e-mail: c-dev-help@xerces.apache.org
&gt;


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Re: Xerces 2.6.0 Build on windows</title>
<author><name>Alberto Massari &lt;amassari@datadirect.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B064214.9010907@datadirect.com%3e"/>
<id>urn:uuid:%3c4B064214-9010907@datadirect-com%3e</id>
<updated>2009-11-20T07:15:32Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
That's the "debug" folder; you should also select the "Release" 
configuration, and build it. The output for that configuration will be 
in the Build/VC6/Release folder.
Also, if you use the deprecated DOM, you should select the DeprecatedDOM 
project, right click to get the popup menu, and choose Build

Alberto

Vinutha Nagaraju wrote:
&gt;
&gt; Hi,
&gt;
&gt; I have a query on building Xerces 2.6.0 on Windows.
&gt; I have followed the instructions provided in Readme.html. I have 
&gt; opened the Project
&gt;
&gt; Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw
&gt;
&gt; in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
&gt; errors, I am not sure if the final bits created is what is expected.
&gt;
&gt; I see the following files created in Build/Win32/VC6/Debug/
&gt; -rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
&gt; -rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
&gt; -rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 xerces-c_2_6D.pdb
&gt; -rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 xerces-c_2_6D.ilk
&gt; -rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 xerces-c_2_6D.dll
&gt;
&gt; Can someone please confirm  if the above files are windows expected 
&gt; files ? If not, what is missing and how to built it ?
&gt;
&gt; Thanks,
&gt; Vinu
&gt;
&gt;
&gt;
&gt;


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



</pre>
</div>
</content>
</entry>
<entry>
<title>Xerces 2.6.0 Build on windows</title>
<author><name>Vinutha Nagaraju &lt;Vinutha.Nagaraju@Sun.COM&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c4B063AF4.9010505@sun.com%3e"/>
<id>urn:uuid:%3c4B063AF4-9010505@sun-com%3e</id>
<updated>2009-11-20T06:45:08Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Hi,

I have a query on building Xerces 2.6.0 on Windows.
I have followed the instructions provided in Readme.html. I have opened 
the Project

Projects\Win32\VC6\xerces-all\XercesLib\XercesLib.dsw

in  MSVC6.0. Then built Xerceslib. Though I haven't seen any build 
errors, I am not sure if the final bits created is what is expected.

I see the following files created in Build/Win32/VC6/Debug/
-rwxr-xr-x   1 nobody   nobody   2977668 Nov 17 13:24 xerces-c_2D.lib
-rwxr-xr-x   1 nobody   nobody   1820661 Nov 17 13:24 xerces-c_2D.exp
-rwxr-xr-x   1 nobody   nobody   4719616 Nov 17 13:24 xerces-c_2_6D.pdb
-rwxr-xr-x   1 nobody   nobody   21348168 Nov 17 13:24 xerces-c_2_6D.ilk
-rwxr-xr-x   1 nobody   nobody   3219545 Nov 17 13:24 xerces-c_2_6D.dll

Can someone please confirm  if the above files are windows expected 
files ? If not, what is missing and how to built it ?

Thanks,
Vinu




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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1659) Order sensitivity in schemaLocation and noNamespaceSchemaLocation</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c149636454.1258632819667.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c149636454-1258632819667-JavaMail-jira@brutus%3e</id>
<updated>2009-11-19T12:13:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1659?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1659.
------------------------------------

    Resolution: Fixed

The fix is in SVN. All test cases now pass with multi-import support enabled.

&gt; Order sensitivity in schemaLocation and noNamespaceSchemaLocation
&gt; -----------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1659
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1659
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: all
&gt;            Reporter: Boris Kolpackov
&gt;            Assignee: Boris Kolpackov
&gt;             Fix For: 3.1.0
&gt;
&gt;         Attachments: test-case-1.tar.gz, test-case-2.tar.gz
&gt;
&gt;
&gt; I am attaching two test cases (each consists of 3 schemas plus an XML instance). If you
try to run domprint on the first test case, you will get the following error:
&gt; $ domprint -v=always -n -s -f test-users.xml 
&gt; Error at file "test-users.xml", line 6, column 78
&gt;    Message: Unknown element 'b:UserDatabase'
&gt; If you change the order of the schemaLocation and noNamespaceSchemaLocation attributes
in test-users.xml then the error disappears.
&gt; The second test case is a slight modification of the first test case with the only difference
being the schemas with targetNamespace are now do not have a namespace, and the schema that
used to be without a namespace (derived-user-config.xsd) now is in a namespace. If you run
domprint on this test case, you will get the following error:
&gt; $ domprint -v=always -n -s -f test-users.xml 
&gt; Error at file "test-users.xml", line 6, column 55
&gt;    Message: Unknown element 'UserDatabase'
&gt; This seems to prove that for Xerces-C++, for some reason, it is important that the schema
that declares the root element is mentioned in the first *Location attribute (nor matter whether
schemaLocation or noNamespaceSchemaLocation). Now comes the surprise: if we reverse the order
of the two attributes in the second test case, domprint terminates with segmentation fault.
Examination of the core points to the IGXMLScanner.cpp, line 2288:
&gt;             elemDecl = fGrammar-&gt;getElemDecl(
&gt;                 uriId, nameRawBuf, qnameRawBuf, currentScope
&gt;             );

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XERCESC-1587) The default values for attributes in schema are not resolved using DOMBuilder</title>
<author><name>&quot;Vit Ondruch (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c2127625449.1258563279695.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2127625449-1258563279695-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T16:54:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XERCESC-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12779522#action_12779522
] 

Vit Ondruch commented on XERCESC-1587:
--------------------------------------

Works also for me in 2.8.0 which I am currently using.

&gt; The default values for attributes in schema are not resolved using DOMBuilder
&gt; -----------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1587
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1587
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.6.0
&gt;            Reporter: Vit Ondruch
&gt;
&gt; I was used to use the XSD schema with default attribute values as:
&gt; &lt;xs:attribute name="MaxSequenceLength" type="xs:unsignedLong" form="unqualified" default="1"
/&gt;
&gt; A lot of my XML files does not contained the attributes with specified default value
at all. When i used the XercesDOMParser, everything worked as expected and when i try to retrieve
the value of such attribute, the default value was returned, but that does not apply for DOMBuilder
unfortunatelly. The attribute is simply not found, which is wrong.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1263) Abstract type not handled correctly by cached grammar</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c390112935.1258554159669.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c390112935-1258554159669-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T14:22:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1263.
------------------------------------

    Resolution: Fixed
      Assignee: Boris Kolpackov

The fix is in SVN.

&gt; Abstract type not handled correctly by cached grammar
&gt; -----------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1263
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1263
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;            Reporter: Matthew Berry
&gt;            Assignee: Boris Kolpackov
&gt;             Fix For: 3.1.0
&gt;
&gt;
&gt; Details:
&gt; --------
&gt; I have managed to narrow the problem I am having to a simple test case. In the schema,
I have an abstract type defined and am using xsi:type with a concrete type in the data file.
&gt; If I have a xsi:schemaLocation attribute in my data file, then the test Xml file passes
the validation. (I have used DOMCount to verify this)
&gt; If I remove xsi:schemaLocation and instead from my source code call loadGrammar() and
setFeature(XMLUni::fgXercesUseCachedGrammarInParse, true), I am getting the following error
messages:
&gt;   Message: Element paramInstance is declared with a type that is
&gt;      abstract.  Use xsi:type to specify a non-abstract type
&gt;   Message: Attribute 'name' is not declared for   
&gt;       element 'paramInstance'
&gt; Schema:
&gt; -------
&gt; &lt;xsd:schema targetNamespace="http://www.temp.org" xmlns:tmp="http://www.temp.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&gt;    &lt;!-- 
&gt;       Define a 'paramInstance' element
&gt;       NOTE: We use an abstract base to allow for extension
&gt;       --&gt;
&gt;    &lt;xsd:complexType name="ParamInstanceType" abstract="true" /&gt;
&gt;    &lt;xsd:element name="paramInstance" type="ParamInstanceType" /&gt;
&gt;    &lt;!-- 
&gt;       Specifying a concrete type
&gt;      --&gt;
&gt;    &lt;xsd:complexType name="ConcreteParamInstance"&gt;
&gt;       &lt;xsd:complexContent&gt;
&gt;          &lt;xsd:extension base="tmp:ParamInstanceType"&gt;
&gt;             &lt;xsd:attribute name="name" type="xsd:string" use="required" /&gt;
&gt;          &lt;/xsd:extension&gt;
&gt;       &lt;/xsd:complexContent&gt;
&gt;    &lt;/xsd:complexType&gt;
&gt; &lt;/xsd:schema&gt;
&gt; Test data file:
&gt; ---------------
&gt; &lt;paramInstance xmlns="http://www.temp.org"   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
&gt;    xsi:type="ConcreteParamInstance" name="param1" /&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to have an attribute which contains XML</title>
<author><name>&quot;Jesse Pelton&quot; &lt;jsp@PKC.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c16E2027582CDB74180896CDB4B8CC1F907D57335@PKCVT01.pkc.com%3e"/>
<id>urn:uuid:%3c16E2027582CDB74180896CDB4B8CC1F907D57335@PKCVT01-pkc-com%3e</id>
<updated>2009-11-18T13:44:23Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>
If I understand you correctly, what I described is not in fact exactly
what you do.  It sounds like rather than the invalid serialization that
I asked about, your document is being serialized correctly.

Invalid:

  &lt;editnumber formula="&lt;data&gt;.//activity/@status&lt;/data&gt;"/&gt;

Valid:

  &lt;editnumber formula="&amp;lt;data&gt;.//activity/@status&amp;lt;/data&gt;"/&gt;

If this is true, the problem is in the parsing as you suggest.  I think
a test case is needed.  I'd recommend attaching an example of a
problematic document that cannot be processed by one of the sample
applications (like DOMParse). 

-----Original Message-----
From: Leif Goodwin [mailto:lgoodwin@qgsl.com] 
Sent: Wednesday, November 18, 2009 5:31 AM
To: c-dev@xerces.apache.org
Subject: RE: How to have an attribute which contains XML


Yes, that is exactly what we do. I use the setAttribute method on
DOMElement
instance passing name as "formula" and value as
"&lt;data&gt;.//activity/@status&lt;/data&gt;". Then I serialise the DOMDocument to
a
string. When I examine the string, I see that Xerces has replaced each
'&lt;'
with "&amp;lt;" which is correct. But it leaves each '&gt;' as is. Then when I
try
to serialise the string into a DOM document, the result is nonsense, as
I
think the '&gt;' characters are interpreted as close element markers. I
tried
replacing each '&gt;' with "&amp;gt;" in the string before passing it to
setAttribute, but that did not work, as it replces the '&amp;' with "&amp;amp;".

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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1703) Bad error description reported by xerces</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c493813028.1258544739715.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c493813028-1258544739715-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T11:45:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1703.
------------------------------------

    Resolution: Fixed
      Assignee: Boris Kolpackov

The fix is in SVN.

&gt; Bad error description reported by xerces
&gt; ----------------------------------------
&gt;
&gt;                 Key: XERCESC-1703
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1703
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: all platforms
&gt;            Reporter: Anton Nikolaevsky
&gt;            Assignee: Boris Kolpackov
&gt;             Fix For: 3.1.0
&gt;
&gt;
&gt; xml:
&gt; &lt;date/&gt;
&gt; xsd:
&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&gt;     &lt;xsd:element name="date" type="xsd:dateTime"/&gt;
&gt; &lt;/xsd:schema&gt;
&gt; Observed: error "Datatype error: Type:SchemaDateTimeException, Message:buffer not initialized
&gt; yet!."
&gt; Expected error message: something like " '' is not a valid value for the type {http://www.w3.org/2001/XMLSchema}dateTime"
&gt; An exception is thrown at XMLDateTime.hpp[411] from XMLDateTime::assertBuffer() invoked
by XMLDateTime::initParser().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1826) XMLURL::makeNewStream() fails to decode file:/// URLs containing the (properly escaped) % character</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1404964710.1258541739683.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1404964710-1258541739683-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T10:55:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1826.
------------------------------------

    Resolution: Fixed

The fix is in SVN.

&gt; XMLURL::makeNewStream() fails to decode file:/// URLs containing the (properly escaped)
% character
&gt; ---------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1826
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1826
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Utilities
&gt;    Affects Versions: 2.5.0, 2.6.0, 2.7.0, 2.8.0, 3.0.0, 2.9.0, 3.1.0
&gt;         Environment: Windows XP Prof. German, MS Visual Studio 2003
&gt;            Reporter: Matteo Ceruti
&gt;            Assignee: Boris Kolpackov
&gt;             Fix For: 3.1.0
&gt;
&gt;
&gt; I truly believe that XMLURL::makeNewStream() (see src/xercesc/util/XMLURL.cpp) does not
correctly handle file:///-URLs containing the escape-sequence %25 (that is the '%'-character
itself). Consider you have a win32 filepath like "C:\Documents\myfile_%_.xml" . Its URL would
be "file:///C:/Documents/myfile_%25_.xml", right? But this URL is rejected by raising a MalformedURLException.
&gt; makeNewStream() decodes the URL by searching and replacing the escape-sequences one by
one. When it sucessfully replaced %25 by the '%'-character it continunes it's search for the
next escape-sequence. The problem is, that it starts at the very position, where the last
escape-sequence began. Therefore it suddenly finds a %-character again, because it had just
been put there.
&gt; This happens at least with xerces-c 2.5 and it seems that the current (revision=670359)
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/XMLURL.cpp still has this problem.
So probably other releases may have the same issue.
&gt; I think the line
&gt;  percentIndex = XMLString::indexOf(realPath, chPercent, percentIndex, fMemoryManager);
&gt; should be replaced by 
&gt;  percentIndex = XMLString::indexOf(realPath, chPercent, percentIndex + 1, fMemoryManager);
&gt; This works for me.
&gt; Please correct me, if I'm wrong. Thank you in advance.
&gt; Best regards,
&gt;  Matteo

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1800) Xerces-C++ is not 64-bit safe</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c511880683.1258541079658.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c511880683-1258541079658-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T10:44:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1800?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1800:
-------------------------------------

    Affects Version/s:     (was: 3.0.0)
                       3.1.0
        Fix Version/s:     (was: 3.1.0)
                       4.0.0
                       3.2.0

Rescheduling for 3.2.0/4.0.0.

&gt; Xerces-C++ is not 64-bit safe
&gt; -----------------------------
&gt;
&gt;                 Key: XERCESC-1800
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1800
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Build
&gt;    Affects Versions: 3.1.0
&gt;            Reporter: Boris Kolpackov
&gt;            Priority: Critical
&gt;             Fix For: 3.2.0, 4.0.0
&gt;
&gt;
&gt; There are a number of places in DOM where unsigned int and unsigned long are used for
indexes and sizes. These should be changed to XMLSize_t. Here is the grep result:
&gt; DOMDocument.hpp:                                                  const unsigned long
lineNum,
&gt; DOMDocument.hpp:                                                  const unsigned long
columnNum) = 0;
&gt; DOMDocumentTraversal.hpp:                                                   unsigned
long    whatToShow,
&gt; DOMDocumentTraversal.hpp:                                               unsigned long
    whatToShow,
&gt; DOMLocator.hpp:    virtual unsigned long getLineNumber() const = 0;
&gt; DOMLocator.hpp:    virtual unsigned long getColumnNumber() const = 0;
&gt; DOMLSParserFilter.hpp:    virtual unsigned long getWhatToShow() const = 0;
&gt; DOMLSSerializerFilter.hpp:    virtual unsigned long getWhatToShow() const =0;
&gt; DOMLSSerializerFilter.hpp:    //   unsigned long fWhatToShow;
&gt; DOMNodeIterator.hpp:    virtual unsigned long      getWhatToShow() = 0;
&gt; DOMTreeWalker.hpp:    virtual unsigned long     getWhatToShow()= 0;
&gt; DOMTypeInfo.hpp:    virtual bool isDerivedFrom(const XMLCh* typeNamespaceArg, const XMLCh*
typeNameArg, unsigned long derivationMethod) const = 0;
&gt; DOMXPathResult.hpp:     virtual unsigned long getSnapshotLength() const = 0;
&gt; DOMXPathResult.hpp:     * @param index of type unsigned long - Index into the snapshot
collection.
&gt; DOMXPathResult.hpp:     virtual const DOMNode* snapshotItem(unsigned long index) const
= 0;
&gt; DOMImplementationList.hpp:    virtual DOMImplementation *item(unsigned int index) const
= 0;
&gt; DOMImplementationList.hpp:    virtual unsigned int getLength() const = 0;
&gt; DOMLSParser.hpp:    virtual const XMLCh* getURIText(unsigned int uriId) const = 0;
&gt; DOMNamedNodeMap.hpp:    virtual DOMNode     *item(unsigned int index) const = 0;
&gt; DOMNamedNodeMap.hpp:    virtual unsigned int getLength() const = 0;
&gt; DOMNodeList.hpp:    virtual DOMNode  *item(unsigned int index) const = 0;
&gt; DOMNodeList.hpp:    virtual unsigned int getLength() const = 0;
&gt; DOMStringList.hpp:    virtual const XMLCh *item(unsigned int index) const = 0;
&gt; DOMStringList.hpp:    virtual unsigned int getLength() const = 0;
&gt; Ideally, we should do such an audit of the entire codebase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1854) Serialization does not detect invalid XML characters</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c2015705691.1258540959708.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c2015705691-1258540959708-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T10:42:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1854:
-------------------------------------

    Fix Version/s:     (was: 3.1.0)
                   4.0.0
                   3.2.0

Rescheduling for 3.2.0/4.0.0.

&gt; Serialization does not detect invalid XML characters
&gt; ----------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1854
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1854
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: DOM
&gt;    Affects Versions: 3.0.1
&gt;            Reporter: Boris Kolpackov
&gt;             Fix For: 3.2.0, 4.0.0
&gt;
&gt;         Attachments: test.cxx
&gt;
&gt;
&gt; The attached test case serializes an invalid XML 1.0 document that contains a character
with value 0x04. See http://www.w3.org/TR/REC-xml/#NT-Char for the list of valid characters
in an XML 1.0 document.
&gt; I've done some digging and it seems that XMLFormatter should check for this. In fast,
there is already code for XML 1.1 that checks for these control characters since they need
to be escaped in 1.1. It looks like we need to check for invalid characters when in the 1.0
mode. There is the XMLChar1_0::isXMLChar() function which can presumably be used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>RE: How to have an attribute which contains XML</title>
<author><name>Leif Goodwin &lt;lgoodwin@qgsl.com&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c26405545.post@talk.nabble.com%3e"/>
<id>urn:uuid:%3c26405545-post@talk-nabble-com%3e</id>
<updated>2009-11-18T10:31:27Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

Yes, that is exactly what we do. I use the setAttribute method on DOMElement
instance passing name as "formula" and value as
"&lt;data&gt;.//activity/@status&lt;/data&gt;". Then I serialise the DOMDocument to a
string. When I examine the string, I see that Xerces has replaced each '&lt;'
with "&amp;lt;" which is correct. But it leaves each '&gt;' as is. Then when I try
to serialise the string into a DOM document, the result is nonsense, as I
think the '&gt;' characters are interpreted as close element markers. I tried
replacing each '&gt;' with "&amp;gt;" in the string before passing it to
setAttribute, but that did not work, as it replces the '&amp;' with "&amp;amp;".



Are you saying that the document may be serialized with an element like the
following?

  &lt;editnumber formula="&lt;data&gt;.//activity/@status&lt;/data&gt;"&gt;

If so, the serialization is invalid.  See
http://www.w3.org/TR/2006/REC-xml-20060816/#syntax.  '&lt;' must be represented
as a numeric character reference or '&amp;lt;' when it's not used as a markup
delimiter.  If humans have to look at the markup, you might want to
represent '&gt;' as '&amp;gt;' for symmetry.  Note that ampersands must also be
escaped.  A spec-compliant XML processor will take care of this for you.


-- 
View this message in context: http://old.nabble.com/How-to-have-an-attribute-which-contains-XML-tp26392607p26405545.html
Sent from the Xerces - C - Dev mailing list archive at Nabble.com.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1748) parsing registry based authorities in URI fails</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c579547556.1258540239696.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c579547556-1258540239696-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T10:30:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1748.
------------------------------------

    Resolution: Fixed

The fix is in SVN.

&gt; parsing registry based authorities in URI fails
&gt; -----------------------------------------------
&gt;
&gt;                 Key: XERCESC-1748
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1748
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.0.1
&gt;         Environment: Linux
&gt;            Reporter: G. Kramer
&gt;            Assignee: Boris Kolpackov
&gt;            Priority: Blocker
&gt;             Fix For: 3.1.0
&gt;
&gt;         Attachments: anyURITest.xml, anyURITest.xsd, xercesc-1748patch.txt
&gt;
&gt;
&gt; validating documents against schema containing registry based authorities in anyURI typed
attributes fails with:
&gt; Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value '...' is NOT
a valid URI

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1747) Schema validation fails on cpe schema</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1996770099.1258540239799.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1996770099-1258540239799-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T10:30:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1747.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0

The fix is in SVN.

&gt; Schema validation fails on cpe schema
&gt; -------------------------------------
&gt;
&gt;                 Key: XERCESC-1747
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1747
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.7.0
&gt;         Environment: windows, linux, osx, solaris
&gt;            Reporter: Paul Whitehurst
&gt;             Fix For: 3.1.0
&gt;
&gt;         Attachments: cpe-1.0.xsd, cpetest.xml
&gt;
&gt;
&gt; Xerces C fails to validate against the CPE schema (http://cpe.mitre.org/) with an invalid
URI error.
&gt; Using the PParse test application I get the following error:
&gt; Error at file C:\dev\test\schema\cpetest.xml, line 4, char 60
&gt;   Message: Datatype error: Type:InvalidDatatypeValueException, Message:Value 'cpe://microsoft.windows:vista'
is NOT a valid URI .

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1866) Crash with regular expression</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c918753165.1258535439695.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c918753165-1258535439695-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T09:10:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1866?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1866:
-------------------------------------

    Fix Version/s:     (was: 3.1.0)
                   4.0.0
                   3.2.0

I have committed the attached patch for 3.1.0. I am leaving this bug open and rescheduling
it for 3.2.0/4.0.0 since this seems to be a temporary fix.

&gt; Crash with regular expression
&gt; -----------------------------
&gt;
&gt;                 Key: XERCESC-1866
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1866
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Utilities
&gt;         Environment: Windows XP, Visual Studio 2005
&gt;            Reporter: Alexander Hartmann
&gt;            Assignee: David Bertoni
&gt;             Fix For: 3.2.0, 4.0.0
&gt;
&gt;         Attachments: XERCESC-1866.patch
&gt;
&gt;
&gt; when I run the following test code my application crashes on the second regEx.matches
call:
&gt; {
&gt;   XMLBuffer optionsBuf;
&gt;   optionsBuf.append('i');
&gt;   optionsBuf.append('H');
&gt;   RegularExpression regEx(L"^\\W*Excel\\W*$", optionsBuf.getRawBuffer());
&gt;   regEx.matches("Excel");
&gt; }
&gt; {
&gt;   XMLBuffer optionsBuf;
&gt;   optionsBuf.append('i');
&gt;   optionsBuf.append('H');
&gt;   RegularExpression regEx(L"^\\W*Excel\\W*$", optionsBuf.getRawBuffer());
&gt;   regEx.matches("Excel");
&gt; }
&gt; some details I found during debugging:
&gt; - there is an instance of RangeToken where I have no idea where this is created. I've
set a breakpoint in the constructor but the debugger does not stop.
&gt; - when RangeToken::getCaseInsensitiveToken is called a new RangeToken is created and
stored in fCaseIToken
&gt; - when parsing is finished the newly created RangeToken is deleted (through ~RegularExpression
-&gt; ~TokenFactory), but the original RangeToken (where I don't know where it is created)
still exists and references the deleted RangeToken in fCaseIToken
&gt; - the next time RangeToken::getCaseInsensitiveToken is called the invalid reference fCaseIToken
is returned and this leads to a crash when it is accessed.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1884) Anytype prevent identity constraint application</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c40443414.1258532199647.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c40443414-1258532199647-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T08:16:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1884?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1884:
-------------------------------------

             Priority: Major  (was: Minor)
    Affects Version/s:     (was: 2.7.0)
                       3.1.0

The problem is still present in the 3.1.0 codebase.

&gt; Anytype prevent identity constraint application
&gt; -----------------------------------------------
&gt;
&gt;                 Key: XERCESC-1884
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1884
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: Linux 2.6.5-7.244-smp x86_64 GNU/Linux
&gt;            Reporter: Thomas Carcaud
&gt;         Attachments: anytype_prevent_id_constraint.xml, anytype_prevent_id_constraint.xsd
&gt;
&gt;
&gt; ID declaration is not found when it is enclosed in two levels of anytype elements. 
&gt; In this example :
&gt; &lt;?xml version="1.0" encoding="utf-8"?&gt;
&gt; &lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"&gt;
&gt;     &lt;xs:element name="bigBadWolf"&gt;
&gt;         &lt;xs:complexType&gt;
&gt;             &lt;xs:sequence maxOccurs="unbounded"&gt;
&gt;                 &lt;xs:element name="eat"&gt;
&gt;                     &lt;xs:complexType&gt;
&gt;                         &lt;xs:attribute name="ref" type="xs:IDREF"/&gt;
&gt;                     &lt;/xs:complexType&gt;
&gt;                 &lt;/xs:element&gt;
&gt;             &lt;/xs:sequence&gt;
&gt;         &lt;/xs:complexType&gt;
&gt;     &lt;/xs:element&gt;
&gt;     &lt;xs:element name="littlePig"&gt;
&gt;         &lt;xs:complexType&gt;
&gt;             &lt;xs:attribute name="id" type="xs:ID"/&gt;
&gt;         &lt;/xs:complexType&gt;
&gt;     &lt;/xs:element&gt;
&gt;     &lt;xs:element name="world"&gt;
&gt;         &lt;xs:complexType&gt;
&gt;             &lt;xs:all&gt;
&gt;                 &lt;xs:element name="strawHouse"/&gt;
&gt;                 &lt;xs:element name="stickHouse"/&gt;
&gt;                 &lt;xs:element name="brickHouse"/&gt;
&gt;                 &lt;xs:element ref="bigBadWolf"/&gt;
&gt;             &lt;/xs:all&gt;
&gt;         &lt;/xs:complexType&gt;
&gt;     &lt;/xs:element&gt;
&gt; &lt;/xs:schema&gt;
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;world xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="anytype_prevent_id_constraint.xsd"&gt;
&gt;     &lt;strawHouse&gt;
&gt;         &lt;littlePig id="first"/&gt;
&gt;     &lt;/strawHouse&gt;
&gt;     &lt;stickHouse&gt;
&gt;         &lt;littlePig id="second"/&gt;
&gt;     &lt;/stickHouse&gt;
&gt;     &lt;brickHouse&gt;
&gt;         &lt;thickWall&gt;
&gt;             &lt;littlePig id="third"/&gt;
&gt;         &lt;/thickWall&gt;
&gt;     &lt;/brickHouse&gt;
&gt;     &lt;bigBadWolf&gt;
&gt;         &lt;eat ref="first"/&gt;
&gt;         &lt;eat ref="second"/&gt;
&gt;         &lt;eat ref="third"/&gt;
&gt;     &lt;/bigBadWolf&gt;
&gt; &lt;/world&gt;
&gt; Validation fails with error "ID attribute 'third' was referenced but never declared".
 Same kind of problem can be reproduced with unique/key and keyref and it also prevent duplicate
id detection.
&gt; From my investigations in IGXMLScanner , at the brickHouse level, modelType == SchemaElementDecl::Any
will set laxThisOne to true. Then at the thickWall level, laxThisOne set fValidate to false.
And this disable the call to fICHandler-&gt;activateIdentityConstraint.
&gt; My text editor using XercesJ 2.9.1 does not suffer from this bug.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1703) Bad error description reported by xerces</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c584212718.1258531959986.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c584212718-1258531959986-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T08:12:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1703?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1703:
-------------------------------------

             Priority: Major  (was: Minor)
    Affects Version/s:     (was: 2.6.0)
                       3.1.0
        Fix Version/s: 3.1.0
           Issue Type: Bug  (was: Improvement)

Bug is still present in the 3.1.0 codebase. Would be nice to fix for 3.1.0.

&gt; Bad error description reported by xerces
&gt; ----------------------------------------
&gt;
&gt;                 Key: XERCESC-1703
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1703
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: all platforms
&gt;            Reporter: Anton Nikolaevsky
&gt;             Fix For: 3.1.0
&gt;
&gt;
&gt; xml:
&gt; &lt;date/&gt;
&gt; xsd:
&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&gt;     &lt;xsd:element name="date" type="xsd:dateTime"/&gt;
&gt; &lt;/xsd:schema&gt;
&gt; Observed: error "Datatype error: Type:SchemaDateTimeException, Message:buffer not initialized
&gt; yet!."
&gt; Expected error message: something like " '' is not a valid value for the type {http://www.w3.org/2001/XMLSchema}dateTime"
&gt; An exception is thrown at XMLDateTime.hpp[411] from XMLDateTime::assertBuffer() invoked
by XMLDateTime::initParser().

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1627) Schema validator sensitive to the order of xsd:import and xsd:include elements.</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c690567524.1258531839597.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c690567524-1258531839597-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T08:10:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1627.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0

With the multiple import enabled, I get the same output with the original schema and with
the swapped include/import. There are some other schema and validation errors but I am assuming
the original bug is fixed.

&gt; Schema validator sensitive to the order of xsd:import and xsd:include elements.
&gt; -------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1627
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1627
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.5.0, 2.6.0, 2.7.0
&gt;         Environment: Windows XP SR2
&gt;            Reporter: Peter Aberline
&gt;            Priority: Minor
&gt;             Fix For: 3.1.0
&gt;
&gt;         Attachments: schema_validator_bug.zip
&gt;
&gt;
&gt; Xerces validating schema parser appears to be intolerant of the order of xsd:import and
xsd:include elements.
&gt; This can be demonstrated with the the DOMCount program:
&gt; DOMCount -s -n -v=always CSW_caps.xml
&gt; This causes validation errors by the schema validator unable to resolve types included
in owsGetCapabilities. Swapping the order of the
&gt; &lt;xsd:include&gt; to after the &lt;xsd:import&gt; (lines 22-25 of CSW-discovery.xsd)
solves the validation error.
&gt; The fragment of XMLSchema.xsd shown below suggests to me that import and include elements
can be in any order?
&gt; http://www.w3.org/2001/XMLSchema.xsd:
&gt; &lt;xs:element name="schema" id="schema"&gt;
&gt;     &lt;xs:annotation&gt;
&gt;         &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-schema"/&gt;
&gt;     &lt;/xs:annotation&gt;
&gt;     &lt;xs:complexType&gt;
&gt;         &lt;xs:complexContent&gt;
&gt;             &lt;xs:extension base="xs:openAttrs"&gt;
&gt;                 &lt;xs:sequence&gt;
&gt;                     &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
&gt;                         &lt;xs:element ref="xs:include"/&gt;
&gt;                         &lt;xs:element ref="xs:import"/&gt;
&gt;                         &lt;xs:element ref="xs:redefine"/&gt;
&gt;                         &lt;xs:element ref="xs:annotation"/&gt;
&gt;                     &lt;/xs:choice&gt;
&gt;                     &lt;xs:sequence minOccurs="0" maxOccurs="unbounded"&gt;
&gt;                         &lt;xs:group ref="xs:schemaTop"/&gt;
&gt;                         &lt;xs:element ref="xs:annotation" minOccurs="0" maxOccurs="unbounded"/&gt;
&gt;                     &lt;/xs:sequence&gt;
&gt;                     ...
&gt;                     ...
&gt;                 &lt;/xs:sequence&gt;
&gt;             &lt;/xs:extension&gt;
&gt;         &lt;/xs:complexContent&gt;
&gt;     &lt;/xs:complexType&gt;
&gt; &lt;/xs:element&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1544) xsd:redefine recently broken</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1587748463.1258531359675.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1587748463-1258531359675-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T08:02:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1544:
-------------------------------------

    Affects Version/s:     (was: 2.7.0)
                       3.1.0

Still present in the 3.1.0 codebase.

&gt; xsd:redefine recently broken
&gt; ----------------------------
&gt;
&gt;                 Key: XERCESC-1544
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1544
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: MacOS X, g++ build
&gt;            Reporter: Jerry Carter
&gt;         Attachments: redefine1.xsd, redefine2.xsd, redefine3.xml, redefine3.xsd
&gt;
&gt;
&gt; The W3C schema for VoiceXML is quite complex and makes a good test of Xerces.  Previous
versions worked well, but 2.7.0 has some problems.  In addition the regexp issues (bug 1512),
xsd:redefine is also broken.  This has worked in previous versions (up through 2.6.0, I believe).
&gt; The main VXML schema &lt;http://www.w3.org/TR/voicexml21/vxml.xsd&gt; eventually includes
&lt;http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd&gt;.  There, on line 28 is
the problem statement:
&gt; &lt;xsd:redefine schemaLocation="vxml-synthesis-restriction.xsd"&gt;
&gt; This generates two classes of error messages.
&gt; 1: Message: Could not find a declaration in the schema to be redefined corresponding
to '...'
&gt; 2: Message: Global complexType:'...' declared more than once or also declared as simpleType
&gt; --------------------------------------
&gt; To reproduce, run the following lines through SAX2Print:
&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt;
&gt; &lt;vxml version="2.1" xmlns="http://www.w3.org/2001/vxml"
&gt;   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
&gt;   xsi:schemaLocation="http://www.w3.org/2001/vxml 
&gt;   http://www.w3.org/TR/voicexml21/vxml.xsd"&gt;
&gt; &lt;form&gt;
&gt;   &lt;block&gt;
&gt;     &lt;exit/&gt;
&gt;   &lt;/block&gt;
&gt; &lt;/form&gt;
&gt; &lt;/vxml&gt;
&gt; xerces-c-src_2_7_0/bin: ./SAX2Print -v=always schema_issue.xml
&gt; &lt;?xml version="1.0" encoding="LATIN1"?&gt;
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, line 30,
char 53
&gt;   Message: Could not find a declaration in the schema to be redefined corresponding to
'say-as'
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, line 43,
char 52
&gt;   Message: Could not find a declaration in the schema to be redefined corresponding to
'audio'
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-restriction.xsd, line 55,
char 38
&gt;   Message: Could not find a declaration in the schema to be redefined corresponding to
'mark'
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, line 30,
char 53
&gt;   Message: Global complexType:'say-as' declared more than once or also declared as simpleType
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, line 43,
char 52
&gt;   Message: Global complexType:'audio' declared more than once or also declared as simpleType
&gt; Error at file http://www.w3.org/TR/voicexml21/vxml-synthesis-extension.xsd, line 55,
char 38
&gt;   Message: Global complexType:'mark' declared more than once or also declared as simpleType
&gt; &lt;vxml version="2.1" xsi:schemaLocation="http://www.w3.org/2001/vxml    http://www.w3.org/TR/voicexml21/vxml.xsd"&gt;
&gt; &lt;form scope="dialog"&gt;
&gt;   &lt;block&gt;
&gt;     &lt;exit&gt;&lt;/exit&gt;
&gt;   &lt;/block&gt;
&gt; &lt;/form&gt;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1754) Invalid restriction error on valid schema</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c433964867.1258531240148.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c433964867-1258531240148-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T08:00:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1754:
-------------------------------------

    Affects Version/s:     (was: 2.8.0)
                       3.1.0

The problem still present in the 3.1.0 codebase.

&gt; Invalid restriction error on valid schema
&gt; -----------------------------------------
&gt;
&gt;                 Key: XERCESC-1754
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1754
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;         Environment: any
&gt;            Reporter: Boris Kolpackov
&gt;         Attachments: test.xsd
&gt;
&gt;
&gt; In the attached schema, maxOccurs="1" in the sequence compositor causes Xerces-C++ to
report this schema as invalid. Changing it to "2" gets rid of the error. The same problem
exist in minOccurs="0" to minOccurs="1" restriction.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1713) external-schemaLocation property does not override the schema location attribute in the instance</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c399474984.1258530999559.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c399474984-1258530999559-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:56:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1713.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1.0

The fix is in SVN. This can now be resolved by setting fgXercesLoadSchema property to false.

&gt; external-schemaLocation property does not override the schema location attribute in the
instance
&gt; ------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1713
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1713
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.7.0
&gt;         Environment: any
&gt;            Reporter: Boris Kolpackov
&gt;             Fix For: 3.1.0
&gt;
&gt;
&gt; The documentation for the external-schemaLocation and external-noNamespaceSchemaLocation
properties state that if specified, the instance document's schemaLocation and noNamespaceSchemaLocation
attributes will be effectively ignored.  This appears not to be the case. If the schema specified
with the external-* properies can not be opened, the parser proceeds to try paths from the
schemaLocation and noNamespaceSchemaLocation attributes. I think this does not make much sense
and is actually a potential security threat. Normally if one specifies the schema location
with the external-* properties they don't want the values from the instance to have any effect.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1721) Unexpected error info is reported for the group referrence(and Order indicators &quot;all&quot; is used in the group definition)</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1868122599.1258529919842.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1868122599-1258529919842-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:38:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1721?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1721.
------------------------------------

    Resolution: Invalid

The all compositor cannot be inside the sequence compositor. If you remove the &lt;sequence&gt;
tags in the referencing type, the schema becomes valid.

&gt; Unexpected error info is reported for the group referrence(and Order indicators "all"
is used in the group definition)
&gt; ----------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1721
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1721
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.7.0
&gt;         Environment: Windows XP
&gt;            Reporter: Bill Yan
&gt;
&gt; When a group is defined with Order indicators "all", and this group is refered in a complexType
definition, the schema file looks like this:
&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&gt;  &lt;xsd:element name="comment" type="xsd:string"/&gt;
&gt;  &lt;xsd:group name="schemaTop3"&gt;
&gt;   &lt;xsd:all&gt;
&gt;       &lt;xsd:element ref="comment"/&gt;
&gt;    &lt;/xsd:all&gt;
&gt;  &lt;/xsd:group&gt;
&gt;   
&gt;  &lt;xsd:complexType name="PurchaseOrderType"&gt;
&gt;   &lt;xsd:sequence&gt;
&gt;    &lt;xsd:group ref="schemaTop3" minOccurs="0" maxOccurs="0"/&gt;
&gt;   &lt;/xsd:sequence&gt;
&gt;  &lt;/xsd:complexType&gt;
&gt; &lt;/xsd:schema&gt;
&gt; when I use XercesDOMParser::loadGrammar() to check the validity of this schema file,
the following error info is reported: 
&gt; "A group whose content is 'all' must only appear as the content type of a complex type
definition. - Line 11, Col 61".
&gt;  I tried to change xsd:all to xsd:sequence or xsd:choice, no error is reported.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1715) xereces-c allows a restricted type to have mixed content,  where the content type of the base is not.</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1297372717.1258529439645.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1297372717-1258529439645-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:30:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1715:
-------------------------------------

    Affects Version/s:     (was: 2.7.0)
                       3.1.0

Still present in the 3.1.0 codebase. Xerces-J 2.9.1 appears to have the same problem.

&gt; xereces-c allows a restricted type to have mixed content,  where the content type of
the base is not.
&gt; -----------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1715
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1715
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;            Reporter: Christian Will
&gt;
&gt; Hi there,
&gt; xereces-c allows a restricted type to have mixed content,  where the content type of
the base is not.
&gt; sample:
&gt; &lt;?xml version="1.0"?&gt;
&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
&gt; 	&lt;xsd:complexType name="A"&gt;
&gt; 		&lt;xsd:choice minOccurs="0" maxOccurs="4"&gt;
&gt; 			&lt;xsd:group ref="x"/&gt;
&gt; 			&lt;xsd:group ref="y"/&gt;
&gt; 		&lt;/xsd:choice&gt;
&gt; 	&lt;/xsd:complexType&gt;
&gt; 	&lt;xsd:group name="x"&gt;
&gt; 		&lt;xsd:sequence&gt;
&gt; 			&lt;xsd:element name="x1"/&gt;
&gt; 			&lt;xsd:element name="x2"/&gt;
&gt; 		&lt;/xsd:sequence&gt;
&gt; 	&lt;/xsd:group&gt;
&gt; 	&lt;xsd:group name="y"&gt;
&gt; 		&lt;xsd:choice&gt;
&gt; 			&lt;xsd:element name="y1"/&gt;
&gt; 			&lt;xsd:element name="y2"/&gt;
&gt; 		&lt;/xsd:choice&gt;
&gt; 	&lt;/xsd:group&gt;
&gt; 	&lt;xsd:group name="G"&gt;
&gt; 		&lt;xsd:choice&gt;
&gt; 			&lt;xsd:group ref="x"/&gt;
&gt; 			&lt;xsd:group ref="y"/&gt;
&gt; 		&lt;/xsd:choice&gt;
&gt; 	&lt;/xsd:group&gt;
&gt; 	&lt;xsd:element name="elem"&gt;
&gt; 		&lt;xsd:complexType mixed="true"&gt;
&gt; 			&lt;xsd:complexContent&gt;
&gt; 				&lt;xsd:restriction base="A"&gt;
&gt; 					&lt;xsd:group ref="G" minOccurs="0" maxOccurs="0"/&gt;
&gt; 				&lt;/xsd:restriction&gt;
&gt; 			&lt;/xsd:complexContent&gt;
&gt; 		&lt;/xsd:complexType&gt;
&gt; 	&lt;/xsd:element&gt;
&gt; &lt;/xsd:schema&gt;
&gt; Regards,
&gt; Christian Will

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1601) SAX2 Parser throws an uncaught xercesc_2_7::XMLValid::Codes exception when setValidationConstraintFatal is on with enclosing xml tags</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c245997304.1258529319614.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c245997304-1258529319614-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:28:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1601.
------------------------------------

    Resolution: Invalid

Does not appear to be a problem with Xerces-C++.

&gt; SAX2 Parser throws an uncaught xercesc_2_7::XMLValid::Codes exception when setValidationConstraintFatal
is on with enclosing xml tags
&gt; -------------------------------------------------------------------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1601
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1601
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.7.0
&gt;         Environment: Xerces 2.7 recompiled locally
&gt; Win2K, WinXP, Win2k3
&gt; Microsoft Visual Sutudio 7.1 in either debug or release builds
&gt;            Reporter: Michel Courtine
&gt;
&gt; I implemented a xerces SAX2 parser by following IBM's recommandations in "Make the most
of Xerces-C++" found at:
&gt; http://www-128.ibm.com/developerworks/xml/library/x-xercc/
&gt; This parser works fine with large and complex files and performs a very good validation.
No complains at all.
&gt; Untill we started to use DOM generated files by a Java app that outputs this kind of
xml data:
&gt; &lt;Directory xmlns="http://www.rd.bbc.co.uk/dtv/wp4/System42" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1" xsi:schemaLocation="http://www.rd.bbc.co.uk/dtv/wp4/System42 ../schema/system42.xsd"&gt;
&gt;     &lt;ModuleEntry version="1" type="CODE" name="LIBCORE"&gt;
&gt;     &lt;/ModuleEntry&gt;
&gt;     &lt;ModuleEntry version="1" type="CODE" name="LIBPATH"&gt;
&gt;     &lt;/ModuleEntry&gt;
&gt;     &lt;ModuleEntry version="1" type="OPENTV_RESOURCE" name="SYS_ENV"&gt;
&gt;     &lt;/ModuleEntry&gt;
&gt;     &lt;ModuleEntry version="1" type="OPENTV_RESOURCE" name="SERVICE"&gt;
&gt;     &lt;/ModuleEntry&gt;
&gt;     &lt;ServiceInfo version="1" name="singleStreamVideo"&gt;
&gt;     &lt;/ServiceInfo&gt;
&gt; &lt;/Directory&gt;
&gt; When we send the following xml, with "self-contained" tags (one-liners) instead of empty-enclosing
tags, no exceptions are thrown and the validation &amp; parsing are performed correctly.
&gt; &lt;Directory xmlns="http://www.rd.bbc.co.uk/dtv/wp4/System42" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1" xsi:schemaLocation="http://www.rd.bbc.co.uk/dtv/wp4/System42 ../schema/system42.xsd"&gt;
&gt;     &lt;ModuleEntry version="1" type="CODE" name="LIBCORE" /&gt;
&gt;     &lt;ModuleEntry version="1" type="CODE" name="LIBPATH" /&gt;
&gt;     &lt;ModuleEntry version="1" type="OPENTV_RESOURCE" name="SYS_ENV" /&gt;
&gt;     &lt;ModuleEntry version="1" type="OPENTV_RESOURCE" name="SERVICE" /&gt;
&gt;     &lt;ServiceInfo version="1" name="singleStreamVideo" /&gt;
&gt; &lt;/Directory&gt;
&gt; An other interesting point for you is that when we turn setValidationConstraintFatal
to false or the validation off, the parsing is performed correctly too.
&gt; This definately means to me that the validation considers the xml file as invalid although
both forms are supposed to be valid from an xsd point of view.
&gt; (XMLSpy validates both versions against our xsd).
&gt; On top of that, probably because because we set setValidationConstraintFatal to true,
the exception is caught internally and fails silently preventing us from catching it.
&gt; Here is the xsd definition of a ModuleEntry:
&gt; 	&lt;xs:element name="ModuleEntry"&gt;
&gt; 		&lt;xs:annotation&gt;
&gt; 			&lt;xs:documentation&gt;Module entry declaration&lt;/xs:documentation&gt;
&gt; 		&lt;/xs:annotation&gt;
&gt; 		&lt;xs:complexType&gt;
&gt; 			&lt;xs:attribute name="name" type="xs:string" use="required"/&gt;
&gt; 			&lt;xs:attribute name="type" use="required"&gt;
&gt; 				&lt;xs:simpleType&gt;
&gt; 					&lt;xs:restriction base="xs:string"&gt;
&gt; 						&lt;xs:enumeration value="DIRECTORY"/&gt;
&gt; 						&lt;xs:enumeration value="ENVIRONMENT"/&gt;
&gt; 						&lt;xs:enumeration value="STREAMEVENTS"/&gt;
&gt; 						&lt;xs:enumeration value="OPENTV_RESOURCE"/&gt;
&gt; 						&lt;xs:enumeration value="SYS42_RESOURCE"/&gt;
&gt; 						&lt;xs:enumeration value="PROPRIETARY_RESOURCE"/&gt;
&gt; 						&lt;xs:enumeration value="CODE"/&gt;
&gt; 						&lt;xs:enumeration value="RAW"/&gt;
&gt; 						&lt;xs:enumeration value="VERSIONED_RAW"/&gt;
&gt; 					&lt;/xs:restriction&gt;
&gt; 				&lt;/xs:simpleType&gt;
&gt; 			&lt;/xs:attribute&gt;
&gt; 			&lt;xs:attribute name="version" type="xs:unsignedInt" use="required"/&gt;
&gt; 		&lt;/xs:complexType&gt;
&gt; 	&lt;/xs:element&gt;
&gt; Here are the features we set in the compilers
&gt; bool CParseMgr::parse(const char* sFilename, const char *sXsdPath)
&gt; {
&gt;   CXercesInitialiser InitXerces;
&gt;   m_sFilename = sFilename;
&gt;   SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
&gt;   parser-&gt;setFeature(XMLUni::fgSAX2CoreValidation, true);
&gt;   parser-&gt;setFeature(XMLUni::fgSAX2CoreNameSpaces, true);
&gt;   parser-&gt;setFeature(XMLUni::fgXercesSchema, true);
&gt;   parser-&gt;setFeature(XMLUni::fgXercesSchemaFullChecking, true);
&gt;   parser-&gt;setValidationConstraintFatal(true);
&gt;   string schemaLocation = "http://www.rd.bbc.co.uk/dtv/wp4/System42 ";
&gt;   char *unixPath = strdup(sXsdPath);
&gt;   for (size_t i = 0; i &lt; strlen(unixPath) - 1; i++)
&gt;       if (unixPath[i] == '\\')
&gt;           unixPath[i] = '/';
&gt;   schemaLocation += unixPath;
&gt;   free(unixPath);
&gt;   parser-&gt;setProperty(XMLUni::fgXercesSchemaExternalSchemaLocation, XMLString::transcode(schemaLocation.c_str()));
&gt;   parser-&gt;setContentHandler(this);
&gt;   parser-&gt;setErrorHandler(this);
&gt;   try
&gt;   {
&gt;     parser-&gt;parse(sFilename);
&gt;   }
&gt;   catch (const XMLException&amp; e) {
&gt;     std::string message = m_sFilename + ":XML exception:" + XMLtoString(e.getMessage());
&gt;     Logger::StoreError( message.c_str() );
&gt;     return false;
&gt;   }
&gt;   catch (const SAXParseException&amp; e) {
&gt;     std::string message = m_sFilename + ":SAXParse exception:" + XMLtoString(e.getMessage());
&gt;     Logger::StoreError( message.c_str() );
&gt;     return false;
&gt;   }
&gt;   catch (const SAXException&amp; e) {
&gt;     std::string message = m_sFilename + ":SAX exception:" + XMLtoString(e.getMessage());
&gt;     Logger::StoreError( message.c_str() );
&gt;     return false;
&gt;   }
&gt;   catch (...)
&gt;   {
&gt;       string msg = m_sFilename + ":Unhandled exception in CParseMgr::parse()";
&gt;       Logger::StoreError(msg.c_str());
&gt;     return false;
&gt;   }
&gt;   delete parser;
&gt;   return true;
&gt; }
&gt; The exception is thrown just after the first occurence of ModuleEntry (startElement)
and before getting into the endElement Handler
&gt; Here is a dump of the call stack a few instructions before the exception is thrown:
&gt; &gt;	xerces-c_2_7D.dll!120a3580() 	
&gt;  	xerces-c_2_7D.dll!120a205a() 	
&gt;  	MSVCRTD.dll!102134ce() 	
&gt;  	MSVCRTD.dll!102134ce() 	
&gt;  	xerces-c_2_7D.dll!120b7324() 	
&gt;  	xerces-c_2_7D.dll!120d545f() 	
&gt;  	MSVCRTD.dll!10212d73() 	
&gt;  	MSVCRTD.dll!1020b5c4() 	
&gt;  	MSVCRTD.dll!10212a14() 	
&gt;  	MSVCRTD.dll!102129a6() 	
&gt;  	MSVCRTD.dll!1020e2cf() 	
&gt;  	kernel32.dll!7c809e2a() 	
&gt;  	xerces-c_2_7D.dll!120d54e1() 	
&gt;  	xerces-c_2_7D.dll!12104391() 	
&gt;  	xerces-c_2_7D.dll!12105e52() 	
&gt;  	Tests.exe!CParseMgr::parse(const char * sFilename=0x005c0cbc, const char * sXsdPath=0x005c0ccc)
 Line 43 + 0x11	C++
&gt;  	Tests.exe!CScrumVTests::TestRandomFile()  Line 138	C++
&gt;  	Tests.exe!boost::unit_test::ut_detail::user_tc_method_invoker&lt;CScrumVTests&gt;::operator()()
 Line 209 + 0x1c	C++
&gt;  	Tests.exe!boost::unit_test::ut_detail::invoker&lt;boost::unit_test::ut_detail::unused&gt;::invoke&lt;boost::unit_test::ut_detail::user_tc_method_invoker&lt;CScrumVTests&gt;
&gt;()  Line 56 + 0x14	C++
&gt;  	Tests.exe!boost::unit_test::ut_detail::callback0_impl_t&lt;boost::unit_test::ut_detail::unused,boost::unit_test::ut_detail::user_tc_method_invoker&lt;CScrumVTests&gt;
&gt;::invoke()  Line 89 + 0x24	C++
&gt;  	Tests.exe!boost::unit_test::callback0&lt;boost::unit_test::ut_detail::unused&gt;::operator()()
 Line 118 + 0x26	C++
&gt;  	Tests.exe!boost::unit_test::`anonymous namespace'::zero_return_wrapper::operator()()
 Line 39 + 0x1a	C++
&gt;  	Tests.exe!boost::unit_test::ut_detail::invoker&lt;int&gt;::invoke&lt;boost::unit_test::`anonymous
namespace'::zero_return_wrapper&gt;(boost::unit_test::`anonymous-namespace'::zero_return_wrapper
&amp; f={...})  Line 42 + 0x14	C++
&gt;  	Tests.exe!boost::unit_test::ut_detail::callback0_impl_t&lt;int,boost::unit_test::`anonymous
namespace'::zero_return_wrapper&gt;::invoke()  Line 89 + 0x20	C++
&gt;  	Tests.exe!boost::unit_test::callback0&lt;int&gt;::operator()()  Line 118 + 0x22	C++
&gt;  	Tests.exe!boost::execution_monitor::catch_signals(const boost::unit_test::callback0&lt;int&gt;
&amp; F={...}, bool __formal=false, bool __formal=false)  Line 493 + 0x34	C++
&gt;  	Tests.exe!boost::execution_monitor::execute(const boost::unit_test::callback0&lt;int&gt;
&amp; F={...}, bool catch_system_errors=false, int timeout=0)  Line 225 + 0x14	C++
&gt;  	Tests.exe!boost::unit_test::unit_test_monitor_t::execute_and_translate(const boost::unit_test::test_case
&amp; tc={...})  Line 56 + 0x55	C++
&gt;  	Tests.exe!boost::unit_test::framework_impl::visit(const boost::unit_test::test_case
&amp; tc={...})  Line 100 + 0xf	C++
&gt;  	Tests.exe!boost::unit_test::traverse_test_tree(const boost::unit_test::test_case &amp;
tc={...}, boost::unit_test::test_tree_visitor &amp; V={...})  Line 155	C++
&gt;  	Tests.exe!boost::unit_test::traverse_test_tree(unsigned long id=65536, boost::unit_test::test_tree_visitor
&amp; V={...})  Line 196 + 0x16	C++
&gt;  	Tests.exe!boost::unit_test::traverse_test_tree(const boost::unit_test::test_suite &amp;
suite={...}, boost::unit_test::test_tree_visitor &amp; V={...})  Line 167 + 0xd	C++
&gt;  	Tests.exe!boost::unit_test::traverse_test_tree(unsigned long id=1, boost::unit_test::test_tree_visitor
&amp; V={...})  Line 198 + 0x16	C++
&gt;  	Tests.exe!boost::unit_test::framework::run(unsigned long id=1, bool continue_test=true)
 Line 324 + 0xf	C++
&gt;  	Tests.exe!main(int argc=1, char * * argv=0x003a3768)  Line 49 + 0x9	C++
&gt;  	Tests.exe!mainCRTStartup()  Line 259 + 0x19	C
&gt;  	kernel32.dll!7c816d4f() 	
&gt;  	ntdll.dll!7c915b4f() 	
&gt;  	kernel32.dll!7c8399f3()
&gt; Thanks for your time.
&gt; Best Regards
&gt; M

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1587) The default values for attributes in schema are not resolved using DOMBuilder</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1815674947.1258529079570.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1815674947-1258529079570-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:24:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1587.
------------------------------------

    Resolution: Invalid

Works for me.

&gt; The default values for attributes in schema are not resolved using DOMBuilder
&gt; -----------------------------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1587
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1587
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.6.0
&gt;            Reporter: Vit Ondruch
&gt;
&gt; I was used to use the XSD schema with default attribute values as:
&gt; &lt;xs:attribute name="MaxSequenceLength" type="xs:unsignedLong" form="unqualified" default="1"
/&gt;
&gt; A lot of my XML files does not contained the attributes with specified default value
at all. When i used the XercesDOMParser, everything worked as expected and when i try to retrieve
the value of such attribute, the default value was returned, but that does not apply for DOMBuilder
unfortunatelly. The attribute is simply not found, which is wrong.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Closed: (XERCESC-1576) lax wildcard is handled as strict wildcard in some cases</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1937227663.1258528839619.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1937227663-1258528839619-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:20:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov closed XERCESC-1576.
------------------------------------

    Resolution: Invalid

Please provide a test case (schema and xml files) that reproduces this problem.

&gt; lax wildcard is handled as strict wildcard in some cases
&gt; --------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1576
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1576
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 2.6.0
&gt;         Environment: Windows VC++
&gt;            Reporter: Akihiko Tozawa
&gt;
&gt; This bug is similar to XERCESJ-128.  
&gt; When reading for example, &lt;xs:any processContents="lax" namespace="a b c d"/&gt;,
this "lax" is ignored and treated as "strict".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-1668) Good schema rejected - simpleContent/complexContent</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c255189802.1258528719836.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c255189802-1258528719836-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:18:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-1668:
-------------------------------------

    Affects Version/s:     (was: 2.7.0)
                       3.1.0

&gt; Good schema rejected - simpleContent/complexContent
&gt; ---------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1668
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1668
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;            Reporter: Jochen Schwarze
&gt;         Attachments: test.xml, test.xsd
&gt;
&gt;
&gt; The attached schema does not validate the attached instance:
&gt; file:///.../test.xsd:12,36: The type 'xs:anyType' specified as the base in the simpleContent
element must not have complexContent
&gt; Both schema and instance validate in Xerces-J 2.9 (with schema-full-checking), with MSXML
4.0 and 6.0, Saxon-SA 8.8, XSV 2.10-1 and with Alphaworks' SchemaQualityChecker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Commented: (XERCESC-1668) Good schema rejected - simpleContent/complexContent</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1343438112.1258528719611.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1343438112-1258528719611-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:18:39Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

    [ https://issues.apache.org/jira/browse/XERCESC-1668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12779345#action_12779345
] 

Boris Kolpackov commented on XERCESC-1668:
------------------------------------------

Still present in the 3.1.0 codebase.

&gt; Good schema rejected - simpleContent/complexContent
&gt; ---------------------------------------------------
&gt;
&gt;                 Key: XERCESC-1668
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-1668
&gt;             Project: Xerces-C++
&gt;          Issue Type: Bug
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 3.1.0
&gt;            Reporter: Jochen Schwarze
&gt;         Attachments: test.xml, test.xsd
&gt;
&gt;
&gt; The attached schema does not validate the attached instance:
&gt; file:///.../test.xsd:12,36: The type 'xs:anyType' specified as the base in the simpleContent
element must not have complexContent
&gt; Both schema and instance validate in Xerces-J 2.9 (with schema-full-checking), with MSXML
4.0 and 6.0, Saxon-SA 8.8, XSV 2.10-1 and with Alphaworks' SchemaQualityChecker.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
<entry>
<title>[jira] Updated: (XERCESC-391) Make Error/Message Extension Of The XMLValidator Possible</title>
<author><name>&quot;Boris Kolpackov (JIRA)&quot; &lt;xerces-c-dev@xml.apache.org&gt;</name></author>
<link rel="alternate" href="http://mail-archives.apache.org/mod_mbox/xerces-c-dev/200911.mbox/%3c1101608768.1258528240296.JavaMail.jira@brutus%3e"/>
<id>urn:uuid:%3c1101608768-1258528240296-JavaMail-jira@brutus%3e</id>
<updated>2009-11-18T07:10:40Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml">
<pre>

     [ https://issues.apache.org/jira/browse/XERCESC-391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Boris Kolpackov updated XERCESC-391:
------------------------------------

      Priority: Minor  (was: Major)
      Assignee:     (was: Xerces-C Developers Mailing List)
    Issue Type: New Feature  (was: Bug)

&gt; Make Error/Message Extension Of The XMLValidator Possible
&gt; ---------------------------------------------------------
&gt;
&gt;                 Key: XERCESC-391
&gt;                 URL: https://issues.apache.org/jira/browse/XERCESC-391
&gt;             Project: Xerces-C++
&gt;          Issue Type: New Feature
&gt;          Components: Validating Parser (XML Schema)
&gt;    Affects Versions: 1.7.0
&gt;         Environment: Operating System: Linux
&gt; Platform: PC
&gt;            Reporter: Reid Spencer
&gt;            Priority: Minor
&gt;         Attachments: XMLValidator.cpp, XMLValidator.hpp, XMLValidityCodes.hpp
&gt;
&gt;
&gt; The 1.7.0 xercesc/framework/XMLValidator class uses a message numbering and 
&gt; loading schema that does not lend itself to extension of the class. In my case,
&gt; I am attempting to provide further semantic validation of a document by 
&gt; extending the class xercesc/validators/schema/SchemaValidator.  To make 
&gt; XMLValidator a little more friendly to those wishing to extend it, I have 
&gt; made four new virtual functions in the XMLValidator interface. All four have
&gt; default implementations and no code changes to any other classes were required.
&gt; The new virtual functions are: getClassLoader, isWarning, isError, and isFatal.
&gt; These four functions permit a subclass to determine which class loader gets
&gt; loaded to generate the error message and to also decide which error codes are
&gt; warnings, errors, or fatal.  Previously, these capabilities were statically
&gt; coded into XMLValidator and XMLValid. One other change is that XMLValid::Codes
&gt; is now an unsigned integer rather than an enumeration. This change is needed
&gt; in order to make it possible for subclasses to have their own range of error
&gt; codes. XMLValidator reserves error numbers 0-9999 for its own use. Subclasses
&gt; can pick any other range for their error numbers.
&gt; The change to implement this consists of only three files:
&gt; xercesc/framework/XMLValidator.hpp
&gt; xercesc/framework/XMLValidator.cpp
&gt; xercesc/framework/XMLValidityCodes.hpp
&gt; All three files are provided as attachments and have been tested in the
&gt; following environment (i.e. all Sample &amp; Test programs work):
&gt; Platform: PC (2 x 1GHz Pentium III )
&gt; Operating System: Linux 7.1 + updates (kernel = 2.4.9-31smp)
&gt; Compiler: GCC 3.0.3
&gt; It would be great if these changes could be made to "stick" in future releases.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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



</pre>
</div>
</content>
</entry>
</feed>
