<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-259</id>
	<title>Nabble - Xerces</title>
	<updated>2009-12-09T09:19:18Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Xerces-f259.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Xerces-f259.html" />
	<subtitle type="html">Apache Xerces is a high performance, fully compliant XML parsers. Xerces home is &lt;a href=&quot;http://xml.apache.org/xerces-j/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26713978</id>
	<title>[jira] Commented: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T09:19:18Z</published>
	<updated>2009-12-09T09:19:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788172#action_12788172&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788172#action_12788172&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Boris Kolpackov commented on XERCESC-1900:
&lt;br&gt;------------------------------------------
&lt;br&gt;&lt;br&gt;I agree with Scott's reasoning plus I don't think we should create special configurations for this case. We already have a large number of them (Debug/Release x 32/64 x ICU/no-ICU, etc) and it is getting harder and harder to maintain. On the other hand, changing the runtime flag in the existing configuration is trivially easy. 
&lt;br&gt;&lt;br&gt;If there are no objections, I would like to close this issue.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1900
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.0.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows OS.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: David Wendt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&amp;gt; Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&amp;gt; I can provide the modified .vcproj. 
&lt;br&gt;&amp;gt; Another option is to create a separate Release configuration with this compile option too.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26713978&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26713978&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26713978.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712884</id>
	<title>[jira] Commented: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T08:11:18Z</published>
	<updated>2009-12-09T08:11:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788139#action_12788139&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788139#action_12788139&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;David Wendt commented on XERCESC-1900:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;Ok, I understand. Thanks Scott.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1900
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.0.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows OS.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: David Wendt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&amp;gt; Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&amp;gt; I can provide the modified .vcproj. 
&lt;br&gt;&amp;gt; Another option is to create a separate Release configuration with this compile option too.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712884&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712884&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26712884.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712720</id>
	<title>[jira] Commented: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T08:03:18Z</published>
	<updated>2009-12-09T08:03:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788136#action_12788136&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788136#action_12788136&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Scott Cantor commented on XERCESC-1900:
&lt;br&gt;---------------------------------------
&lt;br&gt;&lt;br&gt;It's not a licensing issue, it's a &amp;quot;if you change this for everybody else, most code in the world using Xerces on Windows will crash&amp;quot; issue.
&lt;br&gt;&lt;br&gt;If they want to add optional build targets, that's fine, but as a default it's entirely the wrong choice.
&lt;br&gt;&lt;br&gt;Note that MS itself now defaults builds to the DLL version, I believe, and has generally steered everybody that way so that they can properly address security fixes to the runtime. Your approach as with all static linking makes you responsible for all fixes.
&lt;br&gt;&lt;br&gt;If you're worried about disk size, just offer it as a separate download.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1900
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.0.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows OS.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: David Wendt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&amp;gt; Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&amp;gt; I can provide the modified .vcproj. 
&lt;br&gt;&amp;gt; Another option is to create a separate Release configuration with this compile option too.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712720&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26712720.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712602</id>
	<title>[jira] Commented: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T07:57:18Z</published>
	<updated>2009-12-09T07:57:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788134#action_12788134&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788134#action_12788134&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;David Wendt commented on XERCESC-1900:
&lt;br&gt;--------------------------------------
&lt;br&gt;&lt;br&gt;The MS runtime merge modules more than doubled our install size. I'm ok with the 90KB increase. The code works great on the test machines we have. Is there any issue (licensing, etc) with me shipping this rebuilt statically linked version? No code was changed. Just the project file.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1900
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.0.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows OS.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: David Wendt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&amp;gt; Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&amp;gt; I can provide the modified .vcproj. 
&lt;br&gt;&amp;gt; Another option is to create a separate Release configuration with this compile option too.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712602&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712602&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26712602.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26712270</id>
	<title>[jira] Commented: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T07:39:18Z</published>
	<updated>2009-12-09T07:39:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788127#action_12788127&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12788127#action_12788127&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Scott Cantor commented on XERCESC-1900:
&lt;br&gt;---------------------------------------
&lt;br&gt;&lt;br&gt;As an option, it's fine, but 99% of today's apps assume DLL-based runtimes and mixing runtime models in a program stack crashes (or used to) due to memory management issues.
&lt;br&gt;&lt;br&gt;You should probably consider bundling MS' runtime library merge modules into your installer.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;&amp;gt; --------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1900
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Build
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 3.0.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows OS.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: David Wendt
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&amp;gt; Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&amp;gt; I can provide the modified .vcproj. 
&lt;br&gt;&amp;gt; Another option is to create a separate Release configuration with this compile option too.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712270&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26712270&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26712270.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26711095</id>
	<title>[jira] Created: (XERCESC-1900) Compile xerces.dll using /MT to remove the dependency on msvcr90.dll</title>
	<published>2009-12-09T06:29:18Z</published>
	<updated>2009-12-09T06:29:18Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">Compile xerces.dll using /MT to remove the dependency on msvcr90.dll
&lt;br&gt;--------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XERCESC-1900
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1900&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1900&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: Xerces-C++
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Improvement
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: Build
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 3.0.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment: Windows OS.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: David Wendt
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Trivial
&lt;br&gt;&lt;br&gt;&lt;br&gt;The xerces-c_3_0.dll requires msvc90.dll to be installed. We have found that some of our customers do not have the msvcr90.dll installed on their machines. 
&lt;br&gt;&lt;br&gt;Changing the compile flag from /MD to /MT for the Release configuration will remove the dependency (compiles all needed C-runtime code into the xerces DLL itself). The result is a 90KB bigger DLL which is only about 6% increase in size.
&lt;br&gt;&lt;br&gt;I can provide the modified .vcproj. 
&lt;br&gt;Another option is to create a separate Release configuration with this compile option too.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711095&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26711095&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1900%29-Compile-xerces.dll-using--MT-to-remove-the-dependency-on-msvcr90.dll-tp26711095p26711095.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663855</id>
	<title>[jira] Issue Comment Edited: (XERCESJ-1392) Xerces breakes schema grammar with hints from instance xsi:schemaLocation</title>
	<published>2009-12-06T03:03:18Z</published>
	<updated>2009-12-06T03:03:18Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786504#action_12786504&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786504#action_12786504&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ashitkin Alexander edited comment on XERCESJ-1392 at 12/6/09 11:02 AM:
&lt;br&gt;-----------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;Hi Michael, thanks for your response. I don't quite sure i've understood you correctly. If points 1 and 2 are questions, then answers are:
&lt;br&gt;1) i suppose the point 1 is regarding the error.xml instance. I don't see any reason to use schemaLocation specified on the xs:import. From my point of view xs:import is an incapsulated part of the schema and i only should provide valid schemaLocations either by external-schemaLocation property, either by xsi:schemaLocation hint. I hope you agree the &amp;nbsp;xsi:schemaLocation in error.xml is absolutely valid and enough for validation. If you suppose i need to use schemaLocation specified on the xs:import, please explain this.
&lt;br&gt;2) i think the point is inside - out, should be : &amp;nbsp;&amp;quot;Using the URI specified in the instance as a schemaLocation in the xs:import&amp;quot; and if i understood right, this behaviour is just wrong. if i have a set of schemas under the same namespace whose linked relatively, this behaviour will break everything. In a case of honour-all-schemalocations this behaviour even more questionable.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; was (Author: ashitkin.alexander):
&lt;br&gt;&amp;nbsp; &amp;nbsp; Hi Michael, thanks for your response. I don't quite sure i've understood you correctly. If points 1 and 2 are questions, then answers are:
&lt;br&gt;1) i suppose the point 1 is regarding the error.xml instance. I don't see any reason to use schemaLocation specified on the xs:import. From my point of view xs:import is an incapsulated part of the schema and i only should provide valid schemaLocations either by external-schemaLocation property, either by xsi:schemaLocation hint. I hope you agree the &amp;nbsp;xsi:schemaLocation in error.xml is absolutely valid and enough for validation. If you suppose i need to use schemaLocation specified on the xs:import, please explain this.
&lt;br&gt;2) from my point of view point is inside - out, should be : &amp;nbsp;&amp;quot;Using the URI specified in the instance as a schemaLocation in the xs:import&amp;quot; i think with behaviour is just wrong. if i have a set of schemas under thesame namespace whish resolves relatively, it will break everything.
&lt;br&gt;&amp;nbsp; 
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Xerces breakes schema grammar with hints from instance xsi:schemaLocation
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1392
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1392&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1392&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: JAXP (javax.xml.validation)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows XP 2003
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ashitkin Alexander
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: XercesBug.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Xerces trying to resolve xs:import in schema using relative paths from xsi:schemaLocation hint. Thus, validation fails with a &amp;quot;Failed to read schema document&amp;quot; message.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663855&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663855&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1392%29-Xerces-breakes-schema-grammar-with-hints-from-instance-xsi%3AschemaLocation-tp24950822p26663855.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663232</id>
	<title>[jira] Commented: (XERCESJ-1408) assertions facet validation rules, implementation improvements</title>
	<published>2009-12-06T01:15:32Z</published>
	<updated>2009-12-06T01:15:32Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786584#action_12786584&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786584#action_12786584&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Mukul Gandhi commented on XERCESJ-1408:
&lt;br&gt;---------------------------------------
&lt;br&gt;&lt;br&gt;as mentioned in the original problem description of this bug report, point 2) is now solved and code for that has gone into SVN.
&lt;br&gt;&lt;br&gt;I've made some improvements to the kind of built in simple types (i.e, xs:anyAtomicType), that can be handled by assertion facet (now much of the built in atomic types are recognized by assertion facet implementation).
&lt;br&gt;&lt;br&gt;We still have to make corrections, to assign type to xpath2 variable, $value as anyAtomicType*. This is still unclear to me, and I am doing some investigations to it. At presently within Xerces, type of $value is xs:anyAtomicType. We need to make it a sequence of xs:anyAtomicType (i.e, with cardinality &amp;quot;*&amp;quot;).
&lt;br&gt;&lt;br&gt;It seems PsychoPath engine, currently doesn't support creating user defined variables ($value, here), which can have types as &amp;quot;XDM sequence&amp;quot;. I'll raise this query to the PsychoPath team, so we can accomplish this within xerces. But this non-compliance looks, like a minor issue to me, and we can improve this gradually.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Mukul
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; assertions facet validation rules, implementation improvements
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1408
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XML Schema 1.1 Datatypes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.10.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mukul Gandhi
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Mukul Gandhi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&amp;gt; I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&amp;gt; 1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;&amp;gt; (the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $value, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&amp;gt; 2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;&amp;gt; (the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&amp;gt; To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&amp;gt; I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663232&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663232&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1408%29-assertions-facet-validation-rules%2C-improvements-tp26603251p26663232.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26663180</id>
	<title>[jira] Assigned: (XERCESJ-1408) assertions facet validation rules, implementation improvements</title>
	<published>2009-12-06T01:01:52Z</published>
	<updated>2009-12-06T01:01:52Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Mukul Gandhi reassigned XERCESJ-1408:
&lt;br&gt;-------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Assignee: Mukul Gandhi
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; assertions facet validation rules, implementation improvements
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1408
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XML Schema 1.1 Datatypes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.10.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mukul Gandhi
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Mukul Gandhi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&amp;gt; I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&amp;gt; 1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;&amp;gt; (the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $value, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&amp;gt; 2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;&amp;gt; (the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&amp;gt; To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&amp;gt; I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663180&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26663180&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1408%29-assertions-facet-validation-rules%2C-improvements-tp26603251p26663180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26659428</id>
	<title>[jira] Commented: (XERCESJ-1392) Xerces breakes schema grammar with hints from instance xsi:schemaLocation</title>
	<published>2009-12-05T13:14:20Z</published>
	<updated>2009-12-05T13:14:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786504#action_12786504&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12786504#action_12786504&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ashitkin Alexander commented on XERCESJ-1392:
&lt;br&gt;---------------------------------------------
&lt;br&gt;&lt;br&gt;Hi Michael, thanks for your response. I don't quite sure i've understood you correctly. If points 1 and 2 are questions, then answers are:
&lt;br&gt;1) i suppose the point 1 is regarding the error.xml instance. I don't see any reason to use schemaLocation specified on the xs:import. From my point of view xs:import is an incapsulated part of the schema and i only should provide valid schemaLocations either by external-schemaLocation property, either by xsi:schemaLocation hint. I hope you agree the &amp;nbsp;xsi:schemaLocation in error.xml is absolutely valid and enough for validation. If you suppose i need to use schemaLocation specified on the xs:import, please explain this.
&lt;br&gt;2) from my point of view point is inside - out, should be : &amp;nbsp;&amp;quot;Using the URI specified in the instance as a schemaLocation in the xs:import&amp;quot; i think with behaviour is just wrong. if i have a set of schemas under thesame namespace whish resolves relatively, it will break everything.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Xerces breakes schema grammar with hints from instance xsi:schemaLocation
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1392
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1392&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1392&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: JAXP (javax.xml.validation)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Environment: Windows XP 2003
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ashitkin Alexander
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: XercesBug.zip
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Xerces trying to resolve xs:import in schema using relative paths from xsi:schemaLocation hint. Thus, validation fails with a &amp;quot;Failed to read schema document&amp;quot; message.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26659428&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26659428&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1392%29-Xerces-breakes-schema-grammar-with-hints-from-instance-xsi%3AschemaLocation-tp24950822p26659428.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26653150</id>
	<title>How to get Xerces configuration on HP-UX ia64 box to work? Missing a transcoder???</title>
	<published>2009-12-04T21:32:27Z</published>
	<updated>2009-12-04T21:32:27Z</updated>
	<author>
		<name>DeWayne</name>
	</author>
	<content type="html">Ran the configure script as follows:
&lt;br&gt;&lt;br&gt;./configure --prefix=/site/sw/ots/xerces/xerces-c-3.0.1 --exec-prefix=/site/sw/ots/xerces/xerces-c-3.0.1 CC=/usr/bin/cc CXX=/opt/aCC/bin/aCC CXXFLAGS=&amp;quot;-Aa -mt -O&amp;quot; CPPFLAGS=&amp;quot;-I/site/sw/ots/curl/curl-7.19.6/include&amp;quot; &amp;nbsp;--enable-netaccessor-curl &amp;nbsp;--with-curl=/site/sw/ots/curl/curl-7.19.6 
&lt;br&gt;&lt;br&gt;And got a failure message about no transcoder. What does this mean and where do I get one?
&lt;br&gt;&lt;br&gt;Results from the config.log:
&lt;br&gt;====================================
&lt;br&gt;configure:27228: result: no
&lt;br&gt;configure:27240: checking whether we can support the iconv Transcoder
&lt;br&gt;configure:27262: result: no
&lt;br&gt;configure:27270: checking whether we can support the ICU Transcoder
&lt;br&gt;configure:27292: result: no
&lt;br&gt;configure:27392: checking for which Transcoder to use (choices:)
&lt;br&gt;configure:27474: result: none
&lt;br&gt;configure:27476: error: Xerces cannot function without a transcoder
&lt;br&gt;&lt;br&gt;Attached the config.log if this helps
&lt;br&gt;============================================= 
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Users-f283.html&quot; embed=&quot;fixTarget[283]&quot; target=&quot;_top&quot; &gt;Xerces - C - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/method-startElement%28%29-from-class-DOMLSParserFilter-tp25282283p26653150.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26644576</id>
	<title>Re: Special characters problem while writing XML files using JAXP DOM  Parser</title>
	<published>2009-12-04T07:53:29Z</published>
	<updated>2009-12-04T07:53:29Z</updated>
	<author>
		<name>bimargulies</name>
	</author>
	<content type="html">I (mis?)understood the original poster to have a strong opinion on the
&lt;br&gt;lexical surface form of the XML.
&lt;br&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 8:23 AM, Michael Glavassevich
&lt;br&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Sure, lexically but CDATA is just syntactic sugar. An entity reference
&lt;br&gt;&amp;gt; (&amp;lt;) or character reference (&amp;#60; or &amp;#x3C;) would also work fine.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Michael Glavassevich
&lt;br&gt;&amp;gt; XML Parser Development
&lt;br&gt;&amp;gt; IBM Toronto Lab
&lt;br&gt;&amp;gt; E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;
&lt;br&gt;&amp;gt; E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Benson Margulies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bimargulies@...&lt;/a&gt;&amp;gt; wrote on 12/04/2009 07:13:06 AM:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If you need a less than, you need to put it all in a CDATA.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Fri, Dec 4, 2009 at 12:25 AM, nagineni &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;naganirangen_r@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I'm creating xml file using JAXP DOM parser.While writing text data to a
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; node parser is writing special characters.Below is the example.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;lt;template&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;          &amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;          &amp;lt;expr&amp;gt;for(int i=0;i&amp;lt20;i++)&amp;lt;/expr&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; &amp;lt;/template&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; element.Is
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; there any solution around it ?
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Can any one suggest me the solution for this problem ?Thanks in advance.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Naga.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; -----
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Regards,
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Naga.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; --
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Special-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Special-&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-
&lt;br&gt;&amp;gt;&amp;gt; tp26635769p26635769.html
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; Sent from the Xerces - J - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=8&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=9&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26644576&amp;i=10&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26644576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642480</id>
	<title>Re: Special characters problem while writing XML files using JAXP DOM Parser</title>
	<published>2009-12-04T05:29:53Z</published>
	<updated>2009-12-04T05:29:53Z</updated>
	<author>
		<name>keshlam</name>
	</author>
	<content type="html">&lt;font size=2 face=&quot;sans-serif&quot;&gt;Or, better, escape the individual troublesome
character by expressing it as &amp;nbsp;&amp;amp;lt;&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;XML also considers &amp;gt; and &amp;amp; to
be reserved characters; they should be expressed as &amp;amp;gt; and &amp;amp;amp;.&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;&amp;lt;[[CDATA[]]&amp;gt; sections, which provide
a block-escaping mechanism, are sometimes useful for hand-generated XML;
less so for machine-generated. I generally discourage their use.&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;&lt;br&gt;
______________________________________&lt;br&gt;
&amp;quot;... Three things see no end: A loop with exit code done wrong,&lt;br&gt;
A semaphore untested, And the change that comes along. ...&amp;quot;&lt;br&gt;
 &amp;nbsp;-- &amp;quot;Threes&amp;quot; Rev 1.1 - Duane Elms / Leslie Fish (&lt;/font&gt;&lt;a href=&quot;http://www.ovff.org/pegasus/songs/threes-rev-11.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;http://www.ovff.org/pegasus/songs/threes-rev-11.html&lt;/font&gt;&lt;/a&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;)&lt;/font&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;table width=100%&gt;
&lt;tr valign=top&gt;
&lt;td width=40%&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;&lt;b&gt;Benson Margulies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bimargulies@...&lt;/a&gt;&amp;gt;&lt;/b&gt;
&lt;/font&gt;
&lt;p&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;12/04/2009 07:13 AM&lt;/font&gt;
&lt;table border&gt;
&lt;tr valign=top&gt;
&lt;td bgcolor=white&gt;
&lt;div align=center&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;Please respond to&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users@...&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;&lt;/table&gt;
&lt;br&gt;
&lt;td width=59%&gt;
&lt;table width=100%&gt;
&lt;tr valign=top&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;To&lt;/font&gt;&lt;/div&gt;
&lt;td&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users@...&lt;/a&gt;&lt;/font&gt;
&lt;tr valign=top&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;cc&lt;/font&gt;&lt;/div&gt;
&lt;td&gt;
&lt;tr valign=top&gt;
&lt;td&gt;
&lt;div align=right&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;Subject&lt;/font&gt;&lt;/div&gt;
&lt;td&gt;&lt;font size=1 face=&quot;sans-serif&quot;&gt;Re: Special characters problem while
writing XML files using JAXP DOM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Parser&lt;/font&gt;&lt;/table&gt;
&lt;br&gt;
&lt;table&gt;
&lt;tr valign=top&gt;
&lt;td&gt;
&lt;td&gt;&lt;/table&gt;
&lt;br&gt;&lt;/table&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;tt&gt;&lt;font size=2&gt;If you need a less than, you need to put it all in
a CDATA.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
On Fri, Dec 4, 2009 at 12:25 AM, nagineni &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;naganirangen_r@...&lt;/a&gt;&amp;gt;
wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Hi,&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I'm creating xml file using JAXP DOM parser.While writing text data
to a&lt;br&gt;
&amp;gt; node parser is writing special characters.Below is the example.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;template&amp;gt;&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;expr&amp;gt;for(int i=0;i&amp;amp;lt20;i++)&amp;lt;/expr&amp;gt;&lt;br&gt;
&amp;gt; &amp;lt;/template&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt;
element.Is&lt;br&gt;
&amp;gt; there any solution around it ?&lt;br&gt;
&amp;gt; Can any one suggest me the solution for this problem ?Thanks in advance.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Naga.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -----&lt;br&gt;
&amp;gt; Regards,&lt;br&gt;
&amp;gt; Naga.&lt;br&gt;
&amp;gt; --&lt;br&gt;
&amp;gt; View this message in context: &lt;/font&gt;&lt;/tt&gt;&lt;a href=&quot;http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26635769.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;&lt;tt&gt;&lt;font size=2&gt;http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26635769.html&lt;/font&gt;&lt;/tt&gt;&lt;/a&gt;&lt;tt&gt;&lt;font size=2&gt;&lt;br&gt;
&amp;gt; Sent from the Xerces - J - Users mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ---------------------------------------------------------------------&lt;br&gt;
&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;&lt;br&gt;
&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
---------------------------------------------------------------------&lt;br&gt;
To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;&lt;br&gt;
For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642480&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
&lt;/font&gt;&lt;/tt&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26642480.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642434</id>
	<title>Re: Special characters problem while writing XML files using JAXP DOM Parser</title>
	<published>2009-12-04T05:23:58Z</published>
	<updated>2009-12-04T05:23:58Z</updated>
	<author>
		<name>Michael Glavassevich-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;&lt;tt&gt;Sure, lexically but CDATA is just syntactic sugar. An entity reference (&amp;amp;lt;) or character reference (&amp;amp;#60; or &amp;amp;#x3C;) would also work fine.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Michael Glavassevich&lt;br&gt;
XML Parser Development&lt;br&gt;
IBM Toronto Lab&lt;br&gt;
E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Benson Margulies &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;bimargulies@...&lt;/a&gt;&amp;gt; wrote on 12/04/2009 07:13:06 AM:&lt;br&gt;
&lt;br&gt;
&amp;gt; If you need a less than, you need to put it all in a CDATA.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; On Fri, Dec 4, 2009 at 12:25 AM, nagineni &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;naganirangen_r@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Hi,&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I'm creating xml file using JAXP DOM parser.While writing text data to a&lt;br&gt;
&amp;gt; &amp;gt; node parser is writing special characters.Below is the example.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;template&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;          &amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;          &amp;lt;expr&amp;gt;for(int i=0;i&amp;amp;lt20;i++)&amp;lt;/expr&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; &amp;lt;/template&amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt; element.Is&lt;br&gt;
&amp;gt; &amp;gt; there any solution around it ?&lt;br&gt;
&amp;gt; &amp;gt; Can any one suggest me the solution for this problem ?Thanks in advance.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; Regards,&lt;br&gt;
&amp;gt; &amp;gt; Naga.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; -----&lt;br&gt;
&amp;gt; &amp;gt; Regards,&lt;br&gt;
&amp;gt; &amp;gt; Naga.&lt;br&gt;
&amp;gt; &amp;gt; --&lt;br&gt;
&amp;gt; &amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Special-&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Special-&lt;/a&gt;&lt;br&gt;
&amp;gt; characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-&lt;br&gt;
&amp;gt; tp26635769p26635769.html&lt;br&gt;
&amp;gt; &amp;gt; Sent from the Xerces - J - Users mailing list archive at Nabble.com.&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt; ---------------------------------------------------------------------&lt;br&gt;
&amp;gt; &amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; ---------------------------------------------------------------------&lt;br&gt;
&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;&lt;br&gt;
&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642434&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;&lt;/tt&gt;&lt;tt&gt;&lt;br&gt;
&lt;/tt&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26642434.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26642058</id>
	<title>Re: External entity in XML causing null pointer exception during DocumentBuilder.parse</title>
	<published>2009-12-04T04:46:41Z</published>
	<updated>2009-12-04T04:46:41Z</updated>
	<author>
		<name>Michael Glavassevich-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;&lt;tt&gt;I already responded to you. See [1].&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;[1] &lt;a href=&quot;http://markmail.org/message/2qzf4yeeg5iy5o7e&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://markmail.org/message/2qzf4yeeg5iy5o7e&lt;/a&gt;.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Michael Glavassevich&lt;br&gt;
XML Parser Development&lt;br&gt;
IBM Toronto Lab&lt;br&gt;
E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642058&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642058&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;sri kumar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26642058&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sri_kumar_4u@...&lt;/a&gt;&amp;gt; wrote on 12/04/2009 07:18:28 AM:&lt;br&gt;
&lt;br&gt;
&amp;gt; I was trying to parse a XML Document using DOM Parser. &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I got null pointer exception while executing doc = builder.parse&lt;br&gt;
&amp;gt; (xmlDataFile); &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There were few entities in the XML data file. On removing a &lt;br&gt;
&amp;gt; particular entity, i was able to parse the file successfully &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The entity was some thing like this &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;!ENTITY SAMPLE.TIF SYSTEM &amp;quot;SAMPLE.TIF&amp;quot; NDATA TIF&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What could be the reason? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; EDIT: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here is the code: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DocumentBuilderFactory aFactory = &lt;br&gt;
&amp;gt; DocumentBuilderFactory.newInstance(); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aFactory.setValidating(false); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://xml.org/sax/features/namespaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xml.org/sax/features/namespaces&lt;/a&gt;&amp;quot;, false); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://apache.org/xml/features/validation/schema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/validation/schema&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;quot;, false); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; aFactory.setIgnoringComments(true); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; builder = aFactory.newDocumentBuilder(); &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; doc = builder.parse(xmlDataFile); &lt;br&gt;
&amp;gt; This is the trace: &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;nbsp;at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:1944) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:644) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters&lt;br&gt;
&amp;gt; (AbstractDOMParser.java:1191) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters&lt;br&gt;
&amp;gt; (XMLDTDValidator.java:862) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument&lt;br&gt;
&amp;gt; (XMLDocumentFragmentScannerImpl.java:463)&lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:807) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:737) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse&lt;br&gt;
&amp;gt; (XMLParser.java:107) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse&lt;br&gt;
&amp;gt; (DOMParser.java:225) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse&lt;br&gt;
&amp;gt; (DocumentBuilderImpl.java:283) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at XMLParser.Parse(XMLParser.java:89) &lt;br&gt;
&amp;gt; &amp;nbsp; &amp;nbsp; at Main.main(Main.java:116) &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 89 line number points to -&amp;gt; doc = builder.parse(xmlDataFile);&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;gt; &lt;br&gt;
&amp;gt; i was able to find the workaround &amp;nbsp;if i add this code&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;gt; &lt;br&gt;
&amp;gt; &amp;nbsp;aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://apache.org/xml/features/dom/defer-node-expansion&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/dom/defer-node-expansion&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;quot;, false);&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;gt; &lt;br&gt;
&amp;gt; the issue is resolved. But i need to know the cause of this problem.&lt;br&gt;
&amp;gt; Was the entity the cause?&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;gt; &lt;br&gt;
&amp;gt; Thanks&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;&amp;gt; Sri kumar&lt;/tt&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/External-entity-in-XML-causing-null-pointer-exception-during-DocumentBuilder.parse-tp26641757p26642058.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26641757</id>
	<title>External entity in XML causing null pointer exception during DocumentBuilder.parse</title>
	<published>2009-12-04T04:18:28Z</published>
	<updated>2009-12-04T04:18:28Z</updated>
	<author>
		<name>Sri_kumar_4u</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:'times new roman', 'new york', times, serif;font-size:12pt&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; font-size: 12px; &quot;&gt;I was trying to parse a XML Document using DOM Parser.&amp;nbsp;&lt;br&gt;&lt;br&gt;I got null pointer exception while executing doc = builder.parse(xmlDataFile);&amp;nbsp;&lt;br&gt;&lt;br&gt;There were few entities in the XML data file. On removing a particular entity, i was able to parse the file successfully&amp;nbsp;&lt;br&gt;&lt;br&gt;The entity was some thing like this&amp;nbsp;&lt;br&gt;&lt;br&gt;&amp;lt;!ENTITY SAMPLE.TIF SYSTEM &quot;SAMPLE.TIF&quot; NDATA TIF&amp;gt;&amp;nbsp;&lt;br&gt;&lt;br&gt;What could be the reason?&amp;nbsp;&lt;br&gt;&lt;br&gt;EDIT:&amp;nbsp;&lt;br&gt;&lt;br&gt;Here is the code:&amp;nbsp;&lt;br&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DocumentBuilderFactory aFactory =
 DocumentBuilderFactory.newInstance();&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aFactory.setValidating(false);&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aFactory.setFeature(&quot;&lt;a href=&quot;http://xml.org/sax/features/namespaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xml.org/sax/features/namespaces&lt;/a&gt;&quot;, false);&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aFactory.setFeature(&quot;&lt;a href=&quot;http://apache.org/xml/features/validation/schema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/validation/schema&lt;/a&gt;&quot;, false);&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;aFactory.setIgnoringComments(true);&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;builder = aFactory.newDocumentBuilder();&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;doc = builder.parse(xmlDataFile);&amp;nbsp;&lt;br&gt;This is the trace:&amp;nbsp;&lt;br&gt;&lt;br&gt;&amp;nbsp;at
 com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(DeferredDocumentImpl.java:1944)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(DeferredDocumentImpl.java:644)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(AbstractDOMParser.java:1191)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(XMLDTDValidator.java:862)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:463)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at XMLParser.Parse(XMLParser.java:89)&amp;nbsp;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;at Main.main(Main.java:116)&amp;nbsp;&lt;br&gt;&lt;br&gt;&lt;br&gt;89 line number points to -&amp;gt; doc = builder.parse(xmlDataFile);&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;i was able to find the workaround &amp;nbsp;if i add this code&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, sans-serif; &quot;&gt;aFactory&lt;/span&gt;&lt;span&gt;.setFeature(&quot;&lt;a target=&quot;_blank&quot; href=&quot;http://apache.org/xml/features/dom/defer-node-expansion&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/dom/defer-node-expansion&lt;/a&gt;&quot;, false);&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;the issue is resolved. But i need to know the cause of this problem. Was the entity the cause?&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;Thanks&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font class=&quot;Apple-style-span&quot; face=&quot;Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif&quot; size=&quot;3&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 12px;&quot;&gt;Sri kumar&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;position:fixed&quot;&gt;&lt;/div&gt;


&lt;!-- cg6.c50.mail.in.yahoo.com compressed/chunked Thu Dec  3 21:00:56 PST 2009 --&gt;
&lt;/div&gt;&lt;br&gt;



      &lt;!--1--&gt;&lt;hr size=1&gt;&lt;/hr&gt; 
The INTERNET now has a personality. YOURS! &lt;a href=&quot;http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;See your Yahoo! Homepage&lt;/a&gt;.&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/External-entity-in-XML-causing-null-pointer-exception-during-DocumentBuilder.parse-tp26641757p26641757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26641708</id>
	<title>Re: Special characters problem while writing XML files using JAXP DOM  Parser</title>
	<published>2009-12-04T04:13:06Z</published>
	<updated>2009-12-04T04:13:06Z</updated>
	<author>
		<name>bimargulies</name>
	</author>
	<content type="html">If you need a less than, you need to put it all in a CDATA.
&lt;br&gt;&lt;br&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 12:25 AM, nagineni &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641708&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;naganirangen_r@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm creating xml file using JAXP DOM parser.While writing text data to a
&lt;br&gt;&amp;gt; node parser is writing special characters.Below is the example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;template&amp;gt;
&lt;br&gt;&amp;gt;          &amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;gt;          &amp;lt;expr&amp;gt;for(int i=0;i&amp;lt20;i++)&amp;lt;/expr&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/template&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt; element.Is
&lt;br&gt;&amp;gt; there any solution around it ?
&lt;br&gt;&amp;gt; Can any one suggest me the solution for this problem ?Thanks in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Naga.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; -----
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Naga.
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: &lt;a href=&quot;http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26635769.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26635769.html&lt;/a&gt;&lt;br&gt;&amp;gt; Sent from the Xerces - J - Users mailing list archive at Nabble.com.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---------------------------------------------------------------------
&lt;br&gt;&amp;gt; To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641708&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;&amp;gt; For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641708&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641708&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641708&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26641708.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26641200</id>
	<title>[jira] Closed: (XERCESC-1899) XML namespaces with more than one hyphens appear to be broken during validating parse</title>
	<published>2009-12-04T03:22:20Z</published>
	<updated>2009-12-04T03:22:20Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1899?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ben Griffin closed XERCESC-1899.
&lt;br&gt;--------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Resolution: Invalid
&lt;br&gt;&lt;br&gt;I have found counter examples to this.
&lt;br&gt;There is something funny going on - so I will do more analysis before posting again.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; XML namespaces with more than one hyphens appear to be broken during validating parse
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESC-1899
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1899&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1899&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces-C++
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: Validating Parser (XML Schema)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ben Griffin
&lt;br&gt;&amp;gt; &amp;nbsp; Original Estimate: 3h
&lt;br&gt;&amp;gt; &amp;nbsp;Remaining Estimate: 3h
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; This appears to cause the Parser to attempt to parse the document as a DTD document rather than as a schema driven document.
&lt;br&gt;&amp;gt; An example namespace causing trouble is &lt;a href=&quot;http://www.ns.net/xxx-www-zzz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx-www-zzz&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Note that &lt;a href=&quot;http://www.ns.net/xxx-www&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx-www&lt;/a&gt;&amp;nbsp;works fine, as does &lt;a href=&quot;http://www.ns.net/xxx_www_zzz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx_www_zzz&lt;/a&gt;&amp;nbsp;
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641200&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641200&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1899%29-XML-namespaces-with-more-than-one-hyphens-appear-to-be-broken-during-validating-parse-tp26641131p26641200.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26641131</id>
	<title>[jira] Created: (XERCESC-1899) XML namespaces with more than one hyphens appear to be broken during validating parse</title>
	<published>2009-12-04T03:16:20Z</published>
	<updated>2009-12-04T03:16:20Z</updated>
	<author>
		<name>JIRA xerces-c-dev@xml.apache.org</name>
	</author>
	<content type="html">XML namespaces with more than one hyphens appear to be broken during validating parse
&lt;br&gt;-------------------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XERCESC-1899
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESC-1899&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESC-1899&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: Xerces-C++
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Bug
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: Validating Parser (XML Schema)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Ben Griffin
&lt;br&gt;&lt;br&gt;&lt;br&gt;This appears to cause the Parser to attempt to parse the document as a DTD document rather than as a schema driven document.
&lt;br&gt;&lt;br&gt;An example namespace causing trouble is &lt;a href=&quot;http://www.ns.net/xxx-www-zzz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx-www-zzz&lt;/a&gt;&amp;nbsp;
&lt;br&gt;Note that &lt;a href=&quot;http://www.ns.net/xxx-www&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx-www&lt;/a&gt;&amp;nbsp;works fine, as does &lt;a href=&quot;http://www.ns.net/xxx_www_zzz&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.ns.net/xxx_www_zzz&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641131&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26641131&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;c-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---C---Dev-f282.html&quot; embed=&quot;fixTarget[282]&quot; target=&quot;_top&quot; &gt;Xerces - C - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESC-1899%29-XML-namespaces-with-more-than-one-hyphens-appear-to-be-broken-during-validating-parse-tp26641131p26641131.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26638153</id>
	<title>Re: Special characters problem while writing XML files using JAXP DOM  Parser</title>
	<published>2009-12-03T21:40:21Z</published>
	<updated>2009-12-03T21:40:21Z</updated>
	<author>
		<name>Mukul Gandhi-4</name>
	</author>
	<content type="html">it seems, you are not writing the built in entity reference for
&lt;br&gt;character, &amp;quot;&amp;lt;&amp;quot; appropriately.
&lt;br&gt;you are not writing a semicolon, after &amp;lt.
&lt;br&gt;&lt;br&gt;The parsing of the document you have posted, would likely fail with
&lt;br&gt;this particular error.
&lt;br&gt;&lt;br&gt;The Xerces-J sax.Counter sample gives following error, while parsing
&lt;br&gt;the XML document you have posted:
&lt;br&gt;&lt;br&gt;[Fatal Error] test.xml:4:35: The entity &amp;quot;lt20&amp;quot; was referenced, but not declared.
&lt;br&gt;&lt;br&gt;On Fri, Dec 4, 2009 at 10:55 AM, nagineni &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26638153&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;naganirangen_r@...&lt;/a&gt;&amp;gt; wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I'm creating xml file using JAXP DOM parser.While writing text data to a
&lt;br&gt;&amp;gt; node parser is writing special characters.Below is the example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;template&amp;gt;
&lt;br&gt;&amp;gt;          &amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;gt;          &amp;lt;expr&amp;gt;for(int i=0;i&amp;lt20;i++)&amp;lt;/expr&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/template&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt; element.Is
&lt;br&gt;&amp;gt; there any solution around it ?
&lt;br&gt;&amp;gt; Can any one suggest me the solution for this problem ?Thanks in advance.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards,
&lt;br&gt;&amp;gt; Naga.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Regards,
&lt;br&gt;Mukul Gandhi
&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26638153&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26638153&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-users-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26638153.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26635769</id>
	<title>Special characters problem while writing XML files using JAXP DOM Parser</title>
	<published>2009-12-03T21:25:08Z</published>
	<updated>2009-12-03T21:25:08Z</updated>
	<author>
		<name>nagineni</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm creating xml file using JAXP DOM parser.While writing text data to a node parser is writing special characters.Below is the example.
&lt;br&gt;&lt;br&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot; standalone=&amp;quot;no&amp;quot;?&amp;gt;
&lt;br&gt;&amp;lt;template&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;name&amp;gt;naga&amp;lt;/name&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;expr&amp;gt;for(int i=0;i&amp;lt20;i++)&amp;lt;/expr&amp;gt;
&lt;br&gt;&amp;lt;/template&amp;gt;
&lt;br&gt;&lt;br&gt;I want to my XML file output for(int i=0;i&amp;lt;20;i++) inside &amp;lt;expr&amp;gt; element.Is there any solution around it ?
&lt;br&gt;Can any one suggest me the solution for this problem ?Thanks in advance.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Naga.
&lt;br&gt;&lt;div class=&quot;signature&quot;&gt;Regards,
Naga.&lt;/div&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Special-characters-problem-while-writing-XML-files-using-JAXP-DOM-Parser-tp26635769p26635769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26624093</id>
	<title>Re: Null pointer exception during DocumentBuilder.parse(?file?);</title>
	<published>2009-12-03T02:52:14Z</published>
	<updated>2009-12-03T02:52:14Z</updated>
	<author>
		<name>Michael Glavassevich-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;&lt;tt&gt;This is a bug [1] that was fixed in Xerces-J back in 2007.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;However, you are using Sun's implementation, not Apache Xerces-J. We cannot do anything about the problem you're having with this implementation as we have no influence over its codebase. You need to pursue this with the JDK vendor if you want a fix there.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Thanks.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;[1] &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-977&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-977&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Michael Glavassevich&lt;br&gt;
XML Parser Development&lt;br&gt;
IBM Toronto Lab&lt;br&gt;
E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624093&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624093&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;sri kumar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624093&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sri_kumar_4u@...&lt;/a&gt;&amp;gt; wrote on 12/03/2009 04:50:50 AM:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hello All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I got null pointer exception while executing doc = builder.parse(xmlDataFile);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There were few entities in the XML data file. On removing a &lt;br&gt;
&amp;gt; particular entity, i was able to parse the file successfully&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The entity was some thing like this&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;!ENTITY SAMPLE.TIF SYSTEM &amp;quot;SAMPLE.TIF&amp;quot; NDATA TIF&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What could be the reason?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here is the code:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DocumentBuilderFactory aFactory = DocumentBuilderFactory.newInstance();&lt;br&gt;
&amp;gt; aFactory.setValidating(false);&lt;br&gt;
&amp;gt; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://xml.org/sax/features/namespaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xml.org/sax/features/namespaces&lt;/a&gt;&amp;quot;, false);&lt;br&gt;
&amp;gt; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://apache.org/xml/features/validation/schema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/validation/schema&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;quot;, false);&lt;br&gt;
&amp;gt; aFactory.setIgnoringComments(true);&lt;br&gt;
&amp;gt; builder = aFactory.newDocumentBuilder();&lt;br&gt;
&amp;gt; doc = builder.parse(xmlDataFile);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This is the trace:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:1944)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:644)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters&lt;br&gt;
&amp;gt; (AbstractDOMParser.java:1191)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters&lt;br&gt;
&amp;gt; (XMLDTDValidator.java:862)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument&lt;br&gt;
&amp;gt; (XMLDocumentFragmentScannerImpl.java:463)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:807)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:737)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse&lt;br&gt;
&amp;gt; (XMLParser.java:107)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse&lt;br&gt;
&amp;gt; (DOMParser.java:225)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse&lt;br&gt;
&amp;gt; (DocumentBuilderImpl.java:283)&lt;br&gt;
&amp;gt; at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)&lt;br&gt;
&amp;gt; at XMLParser.Parse(XMLParser.java:89)&lt;br&gt;
&amp;gt; at Main.main(Main.java:116)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 89 line number points to -&amp;gt; doc = builder.parse(xmlDataFile);&lt;/tt&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Null-pointer-exception-during-DocumentBuilder.parse%28%E2%80%9Dfile%E2%80%9D%29--tp26623970p26624093.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26624094</id>
	<title>Re: Null pointer exception during DocumentBuilder.parse(?file?);</title>
	<published>2009-12-03T02:52:14Z</published>
	<updated>2009-12-03T02:52:14Z</updated>
	<author>
		<name>Michael Glavassevich-3</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body&gt;
&lt;p&gt;&lt;tt&gt;This is a bug [1] that was fixed in Xerces-J back in 2007.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;However, you are using Sun's implementation, not Apache Xerces-J. We cannot do anything about the problem you're having with this implementation as we have no influence over its codebase. You need to pursue this with the JDK vendor if you want a fix there.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Thanks.&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;[1] &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-977&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-977&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;Michael Glavassevich&lt;br&gt;
XML Parser Development&lt;br&gt;
IBM Toronto Lab&lt;br&gt;
E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624094&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;tt&gt;E-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624094&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mrglavas@...&lt;/a&gt;&lt;/tt&gt;&lt;br&gt;
&lt;br&gt;
&lt;tt&gt;sri kumar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26624094&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sri_kumar_4u@...&lt;/a&gt;&amp;gt; wrote on 12/03/2009 04:50:50 AM:&lt;br&gt;
&lt;br&gt;
&amp;gt; Hello All,&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I got null pointer exception while executing doc = builder.parse(xmlDataFile);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; There were few entities in the XML data file. On removing a &lt;br&gt;
&amp;gt; particular entity, i was able to parse the file successfully&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; The entity was some thing like this&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;lt;!ENTITY SAMPLE.TIF SYSTEM &amp;quot;SAMPLE.TIF&amp;quot; NDATA TIF&amp;gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; What could be the reason?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Here is the code:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; DocumentBuilderFactory aFactory = DocumentBuilderFactory.newInstance();&lt;br&gt;
&amp;gt; aFactory.setValidating(false);&lt;br&gt;
&amp;gt; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://xml.org/sax/features/namespaces&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://xml.org/sax/features/namespaces&lt;/a&gt;&amp;quot;, false);&lt;br&gt;
&amp;gt; aFactory.setFeature(&amp;quot;&lt;a href=&quot;http://apache.org/xml/features/validation/schema&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/validation/schema&lt;/a&gt;&lt;br&gt;
&amp;gt; &amp;quot;, false);&lt;br&gt;
&amp;gt; aFactory.setIgnoringComments(true);&lt;br&gt;
&amp;gt; builder = aFactory.newDocumentBuilder();&lt;br&gt;
&amp;gt; doc = builder.parse(xmlDataFile);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; This is the trace:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:1944)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild&lt;br&gt;
&amp;gt; (DeferredDocumentImpl.java:644)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters&lt;br&gt;
&amp;gt; (AbstractDOMParser.java:1191)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters&lt;br&gt;
&amp;gt; (XMLDTDValidator.java:862)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument&lt;br&gt;
&amp;gt; (XMLDocumentFragmentScannerImpl.java:463)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:807)&lt;br&gt;
&amp;gt; at &lt;br&gt;
&amp;gt; com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse&lt;br&gt;
&amp;gt; (XML11Configuration.java:737)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse&lt;br&gt;
&amp;gt; (XMLParser.java:107)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse&lt;br&gt;
&amp;gt; (DOMParser.java:225)&lt;br&gt;
&amp;gt; at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse&lt;br&gt;
&amp;gt; (DocumentBuilderImpl.java:283)&lt;br&gt;
&amp;gt; at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)&lt;br&gt;
&amp;gt; at XMLParser.Parse(XMLParser.java:89)&lt;br&gt;
&amp;gt; at Main.main(Main.java:116)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; 89 line number points to -&amp;gt; doc = builder.parse(xmlDataFile);&lt;/tt&gt;&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Users-f286.html&quot; embed=&quot;fixTarget[286]&quot; target=&quot;_top&quot; &gt;Xerces - J - Users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Null-pointer-exception-during-DocumentBuilder.parse%28-file-%29--tp26624094p26624094.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26623970</id>
	<title>Null pointer exception during DocumentBuilder.parse(”file”);</title>
	<published>2009-12-03T01:50:50Z</published>
	<updated>2009-12-03T01:50:50Z</updated>
	<author>
		<name>Sri_kumar_4u</name>
	</author>
	<content type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div style=&quot;font-family:'times new roman', 'new york', times, serif;font-size:12pt&quot;&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, FreeSans, Luxi-sans, 'Nimbus Sans L', sans-serif; font-size: 12px; &quot;&gt;Hello All,&lt;br&gt;&lt;br&gt;I got null pointer exception while executing doc = builder.parse(xmlDataFile);&lt;br&gt;&lt;br&gt;There were few entities in the XML data file. On removing a particular entity, i was able to parse the file successfully&lt;br&gt;&lt;br&gt;The entity was some thing like this&lt;br&gt;&lt;br&gt;&amp;lt;!ENTITY SAMPLE.TIF SYSTEM &quot;SAMPLE.TIF&quot; NDATA TIF&amp;gt;&lt;br&gt;&lt;br&gt;What could be the reason?&lt;br&gt;&lt;br&gt;Here is the code:&lt;br&gt;&lt;br&gt;DocumentBuilderFactory aFactory = DocumentBuilderFactory.newInstance();&lt;br&gt;aFactory.setValidating(false);&lt;br&gt;&lt;span&gt;aFactory.setFeature(&quot;&lt;a target=&quot;_blank&quot; href=&quot;http://xml.org/sax/features/namespaces&quot; rel=&quot;nofollow&quot;&gt;http://xml.org/sax/features/namespaces&lt;/a&gt;&quot;,
 false);&lt;/span&gt;&lt;br&gt;&lt;span&gt;aFactory.setFeature(&quot;&lt;a target=&quot;_blank&quot; href=&quot;http://apache.org/xml/features/validation/schema&quot; rel=&quot;nofollow&quot;&gt;http://apache.org/xml/features/validation/schema&lt;/a&gt;&quot;, false);&lt;/span&gt;&lt;br&gt;aFactory.setIgnoringComments(true);&lt;br&gt;builder = aFactory.newDocumentBuilder();&lt;br&gt;doc = builder.parse(xmlDataFile);&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;This is the trace:&lt;br&gt;&lt;br&gt;at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.setChunkIndex(DeferredDocumentImpl.java:1944)&lt;br&gt;at com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl.appendChild(DeferredDocumentImpl.java:644)&lt;br&gt;at com.sun.org.apache.xerces.internal.parsers.AbstractDOMParser.characters(AbstractDOMParser.java:1191)&lt;br&gt;at com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.characters(XMLDTDValidator.java:862)&lt;br&gt;at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:463)&lt;br&gt;at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)&lt;br&gt;at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)&lt;br&gt;at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)&lt;br&gt;at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225)&lt;br&gt;at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283)&lt;br&gt;at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:180)&lt;br&gt;at XMLParser.Parse(XMLParser.java:89)&lt;br&gt;at Main.main(Main.java:116)&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;89 line number points to -&amp;gt; doc = builder.parse(xmlDataFile);&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;position:fixed&quot;&gt;&lt;/div&gt;


&lt;!-- cg6.c50.mail.in.yahoo.com compressed/chunked Wed Dec  2 21:30:44 PST 2009 --&gt;
&lt;/div&gt;&lt;br&gt;



      &lt;!--1--&gt;&lt;hr size=1&gt;&lt;/hr&gt; 
The INTERNET now has a personality. YOURS! &lt;a href=&quot;http://in.rd.yahoo.com/tagline_yyi_1/*http://in.yahoo.com/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;See your Yahoo! Homepage&lt;/a&gt;.&lt;/body&gt;&lt;/html&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Null-pointer-exception-during-DocumentBuilder.parse%28%E2%80%9Dfile%E2%80%9D%29--tp26623970p26623970.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26613390</id>
	<title>[jira] Updated: (XERCESJ-1407) renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM</title>
	<published>2009-12-02T09:56:20Z</published>
	<updated>2009-12-02T09:56:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1407:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: &amp;nbsp; &amp;nbsp; (was: renameNodePatch.txt)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1407
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 3 Core)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: RenameNodePatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I stumbled across an issue when using the DOM Level 3 renameNode method but this issue is actually more than only related to renameNode:
&lt;br&gt;&amp;gt; Depending on parameters the DOM Level 3 renameNode method analyses whether renaming a node would cause a change of node implementation type, i.e. whether an instance of ElementImpl or AttributeImpl will be renamed such that it aquires a Namespace and thus needs to be converted to their respective NS counterparts (ElementNSImpl, AttrNSImpl).
&lt;br&gt;&amp;gt; Depending on the ourcome of this, there are two issues:
&lt;br&gt;&amp;gt; Issue 1:
&lt;br&gt;&amp;gt; If the to-be-renamed node not an NS aware type (i.e. ElementImpl or AttrImpl) and a namespace shall be set, xerces instantiates a new ElementNSImpl/AttNSImpl by calling the class constructor for these hardcoded.
&lt;br&gt;&amp;gt; However, when using the PSVI-aware DOM, this is the wrong class type! It should be PSVIElementNSImpl instead!
&lt;br&gt;&amp;gt; Xerces should call document.createElement instead so the correct class will be instanciated.
&lt;br&gt;&amp;gt; Actually I think it is a general problem that xerces sometimes call node constructors hard coded instead of using the document.create methods and suggest changing this.
&lt;br&gt;&amp;gt; Issue 2:
&lt;br&gt;&amp;gt; If the to-be-renamed node is of an NS-implementation-type or the namespace is null, an internal rename method will be called upon the element/attribute implementation and the same node object will be returned.
&lt;br&gt;&amp;gt; This is fine for the standard implementation, however in sometimes wrong for the HTML and WML DOM.
&lt;br&gt;&amp;gt; The HTML and WML-DOM use specific element implementation classes i.e. HTMLHeadingElementImpl or HTMLParagraphElementImpl.
&lt;br&gt;&amp;gt; In these cases, instead of calling the internal rename method, the element should be re-created using the createElement method of it's document implementation.
&lt;br&gt;&amp;gt; The solution here is the same as for issue 1:
&lt;br&gt;&amp;gt; use the document.create methods for renaming an element.
&lt;br&gt;&amp;gt; However we need to query whether the used DOM implementation allows element instances to be renamed (general XML) or not (HTML, WML).
&lt;br&gt;&amp;gt; Please find attached a patch that:
&lt;br&gt;&amp;gt; 1) replaces every call to Node imlementation constructors (except instances of DocumentImpls) by calling the respective document.create method
&lt;br&gt;&amp;gt; 2) queries whether a DOM implementation permits node renaming and if not, re-created elements upon calling rename.
&lt;br&gt;&amp;gt; I attached a patch that fixes these two issues.
&lt;br&gt;&amp;gt; I'd be pleased if someone could review whether the proposed solution is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613390&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613390&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1407%29-renameNode-creates-wrong-Node-Implementation-with-PSVI%2C-HTML-and-WML-DOM-tp26595239p26613390.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26613391</id>
	<title>[jira] Updated: (XERCESJ-1407) renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM</title>
	<published>2009-12-02T09:56:20Z</published>
	<updated>2009-12-02T09:56:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1407:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: RenameNodePatch.txt
&lt;br&gt;&lt;br&gt;One should not create patches while being in a rush.
&lt;br&gt;&lt;br&gt;While the latest patch is perfectly working, there were some artifacts which I cleaned up with this one.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1407
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 3 Core)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: RenameNodePatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I stumbled across an issue when using the DOM Level 3 renameNode method but this issue is actually more than only related to renameNode:
&lt;br&gt;&amp;gt; Depending on parameters the DOM Level 3 renameNode method analyses whether renaming a node would cause a change of node implementation type, i.e. whether an instance of ElementImpl or AttributeImpl will be renamed such that it aquires a Namespace and thus needs to be converted to their respective NS counterparts (ElementNSImpl, AttrNSImpl).
&lt;br&gt;&amp;gt; Depending on the ourcome of this, there are two issues:
&lt;br&gt;&amp;gt; Issue 1:
&lt;br&gt;&amp;gt; If the to-be-renamed node not an NS aware type (i.e. ElementImpl or AttrImpl) and a namespace shall be set, xerces instantiates a new ElementNSImpl/AttNSImpl by calling the class constructor for these hardcoded.
&lt;br&gt;&amp;gt; However, when using the PSVI-aware DOM, this is the wrong class type! It should be PSVIElementNSImpl instead!
&lt;br&gt;&amp;gt; Xerces should call document.createElement instead so the correct class will be instanciated.
&lt;br&gt;&amp;gt; Actually I think it is a general problem that xerces sometimes call node constructors hard coded instead of using the document.create methods and suggest changing this.
&lt;br&gt;&amp;gt; Issue 2:
&lt;br&gt;&amp;gt; If the to-be-renamed node is of an NS-implementation-type or the namespace is null, an internal rename method will be called upon the element/attribute implementation and the same node object will be returned.
&lt;br&gt;&amp;gt; This is fine for the standard implementation, however in sometimes wrong for the HTML and WML DOM.
&lt;br&gt;&amp;gt; The HTML and WML-DOM use specific element implementation classes i.e. HTMLHeadingElementImpl or HTMLParagraphElementImpl.
&lt;br&gt;&amp;gt; In these cases, instead of calling the internal rename method, the element should be re-created using the createElement method of it's document implementation.
&lt;br&gt;&amp;gt; The solution here is the same as for issue 1:
&lt;br&gt;&amp;gt; use the document.create methods for renaming an element.
&lt;br&gt;&amp;gt; However we need to query whether the used DOM implementation allows element instances to be renamed (general XML) or not (HTML, WML).
&lt;br&gt;&amp;gt; Please find attached a patch that:
&lt;br&gt;&amp;gt; 1) replaces every call to Node imlementation constructors (except instances of DocumentImpls) by calling the respective document.create method
&lt;br&gt;&amp;gt; 2) queries whether a DOM implementation permits node renaming and if not, re-created elements upon calling rename.
&lt;br&gt;&amp;gt; I attached a patch that fixes these two issues.
&lt;br&gt;&amp;gt; I'd be pleased if someone could review whether the proposed solution is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613391&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26613391&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1407%29-renameNode-creates-wrong-Node-Implementation-with-PSVI%2C-HTML-and-WML-DOM-tp26595239p26613391.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26612898</id>
	<title>[jira] Updated: (XERCESJ-1301) EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected</title>
	<published>2009-12-02T09:28:20Z</published>
	<updated>2009-12-02T09:28:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1301:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: WeakEventListenerPatch.txt
&lt;br&gt;&lt;br&gt;There was a bug in the implementation provided three years ago.
&lt;br&gt;Due to a wrong increment the old code could cause an indexOutOffBounds Exception when renaming nodes.
&lt;br&gt;&lt;br&gt;The new patch fixes this.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1301
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1301&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1301&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 2 Events)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: WeakEventListenerPatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612898&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612898&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1301%29-EventListeners-should-be-garbage-collectable-if-the-nodes-the-listeners-are-registered-upon-are-garbage-collected-tp16543953p26612898.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26612899</id>
	<title>[jira] Updated: (XERCESJ-1301) EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected</title>
	<published>2009-12-02T09:28:20Z</published>
	<updated>2009-12-02T09:28:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1301:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: &amp;nbsp; &amp;nbsp; (was: WeakEventListenerPatch.txt)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected
&lt;br&gt;&amp;gt; -----------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1301
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1301&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1301&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 2 Events)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Trivial
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: WeakEventListenerPatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; EventListeners should be garbage collectable if the nodes the listeners are registered upon are garbage collected
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612899&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612899&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1301%29-EventListeners-should-be-garbage-collectable-if-the-nodes-the-listeners-are-registered-upon-are-garbage-collected-tp16543953p26612899.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26612366</id>
	<title>[jira] Updated: (XERCESJ-1407) renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM</title>
	<published>2009-12-02T08:58:20Z</published>
	<updated>2009-12-02T08:58:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1407:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: renameNodePatch.txt
&lt;br&gt;&lt;br&gt;This is a refined version doing a refined check whether an element can be renamed or needs to be replaced.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1407
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 3 Core)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: renameNodePatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I stumbled across an issue when using the DOM Level 3 renameNode method but this issue is actually more than only related to renameNode:
&lt;br&gt;&amp;gt; Depending on parameters the DOM Level 3 renameNode method analyses whether renaming a node would cause a change of node implementation type, i.e. whether an instance of ElementImpl or AttributeImpl will be renamed such that it aquires a Namespace and thus needs to be converted to their respective NS counterparts (ElementNSImpl, AttrNSImpl).
&lt;br&gt;&amp;gt; Depending on the ourcome of this, there are two issues:
&lt;br&gt;&amp;gt; Issue 1:
&lt;br&gt;&amp;gt; If the to-be-renamed node not an NS aware type (i.e. ElementImpl or AttrImpl) and a namespace shall be set, xerces instantiates a new ElementNSImpl/AttNSImpl by calling the class constructor for these hardcoded.
&lt;br&gt;&amp;gt; However, when using the PSVI-aware DOM, this is the wrong class type! It should be PSVIElementNSImpl instead!
&lt;br&gt;&amp;gt; Xerces should call document.createElement instead so the correct class will be instanciated.
&lt;br&gt;&amp;gt; Actually I think it is a general problem that xerces sometimes call node constructors hard coded instead of using the document.create methods and suggest changing this.
&lt;br&gt;&amp;gt; Issue 2:
&lt;br&gt;&amp;gt; If the to-be-renamed node is of an NS-implementation-type or the namespace is null, an internal rename method will be called upon the element/attribute implementation and the same node object will be returned.
&lt;br&gt;&amp;gt; This is fine for the standard implementation, however in sometimes wrong for the HTML and WML DOM.
&lt;br&gt;&amp;gt; The HTML and WML-DOM use specific element implementation classes i.e. HTMLHeadingElementImpl or HTMLParagraphElementImpl.
&lt;br&gt;&amp;gt; In these cases, instead of calling the internal rename method, the element should be re-created using the createElement method of it's document implementation.
&lt;br&gt;&amp;gt; The solution here is the same as for issue 1:
&lt;br&gt;&amp;gt; use the document.create methods for renaming an element.
&lt;br&gt;&amp;gt; However we need to query whether the used DOM implementation allows element instances to be renamed (general XML) or not (HTML, WML).
&lt;br&gt;&amp;gt; Please find attached a patch that:
&lt;br&gt;&amp;gt; 1) replaces every call to Node imlementation constructors (except instances of DocumentImpls) by calling the respective document.create method
&lt;br&gt;&amp;gt; 2) queries whether a DOM implementation permits node renaming and if not, re-created elements upon calling rename.
&lt;br&gt;&amp;gt; I attached a patch that fixes these two issues.
&lt;br&gt;&amp;gt; I'd be pleased if someone could review whether the proposed solution is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612366&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612366&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1407%29-renameNode-creates-wrong-Node-Implementation-with-PSVI%2C-HTML-and-WML-DOM-tp26595239p26612366.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26612369</id>
	<title>[jira] Updated: (XERCESJ-1407) renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM</title>
	<published>2009-12-02T08:58:20Z</published>
	<updated>2009-12-02T08:58:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1407:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: &amp;nbsp; &amp;nbsp; (was: renameNodePatch.txt)
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; renameNode creates wrong Node Implementation with PSVI, HTML and WML DOM
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1407
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1407&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1407&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Bug
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 3 Core)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assignee: Michael Glavassevich
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: renameNodePatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I stumbled across an issue when using the DOM Level 3 renameNode method but this issue is actually more than only related to renameNode:
&lt;br&gt;&amp;gt; Depending on parameters the DOM Level 3 renameNode method analyses whether renaming a node would cause a change of node implementation type, i.e. whether an instance of ElementImpl or AttributeImpl will be renamed such that it aquires a Namespace and thus needs to be converted to their respective NS counterparts (ElementNSImpl, AttrNSImpl).
&lt;br&gt;&amp;gt; Depending on the ourcome of this, there are two issues:
&lt;br&gt;&amp;gt; Issue 1:
&lt;br&gt;&amp;gt; If the to-be-renamed node not an NS aware type (i.e. ElementImpl or AttrImpl) and a namespace shall be set, xerces instantiates a new ElementNSImpl/AttNSImpl by calling the class constructor for these hardcoded.
&lt;br&gt;&amp;gt; However, when using the PSVI-aware DOM, this is the wrong class type! It should be PSVIElementNSImpl instead!
&lt;br&gt;&amp;gt; Xerces should call document.createElement instead so the correct class will be instanciated.
&lt;br&gt;&amp;gt; Actually I think it is a general problem that xerces sometimes call node constructors hard coded instead of using the document.create methods and suggest changing this.
&lt;br&gt;&amp;gt; Issue 2:
&lt;br&gt;&amp;gt; If the to-be-renamed node is of an NS-implementation-type or the namespace is null, an internal rename method will be called upon the element/attribute implementation and the same node object will be returned.
&lt;br&gt;&amp;gt; This is fine for the standard implementation, however in sometimes wrong for the HTML and WML DOM.
&lt;br&gt;&amp;gt; The HTML and WML-DOM use specific element implementation classes i.e. HTMLHeadingElementImpl or HTMLParagraphElementImpl.
&lt;br&gt;&amp;gt; In these cases, instead of calling the internal rename method, the element should be re-created using the createElement method of it's document implementation.
&lt;br&gt;&amp;gt; The solution here is the same as for issue 1:
&lt;br&gt;&amp;gt; use the document.create methods for renaming an element.
&lt;br&gt;&amp;gt; However we need to query whether the used DOM implementation allows element instances to be renamed (general XML) or not (HTML, WML).
&lt;br&gt;&amp;gt; Please find attached a patch that:
&lt;br&gt;&amp;gt; 1) replaces every call to Node imlementation constructors (except instances of DocumentImpls) by calling the respective document.create method
&lt;br&gt;&amp;gt; 2) queries whether a DOM implementation permits node renaming and if not, re-created elements upon calling rename.
&lt;br&gt;&amp;gt; I attached a patch that fixes these two issues.
&lt;br&gt;&amp;gt; I'd be pleased if someone could review whether the proposed solution is ok.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612369&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26612369&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1407%29-renameNode-creates-wrong-Node-Implementation-with-PSVI%2C-HTML-and-WML-DOM-tp26595239p26612369.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26611013</id>
	<title>[jira] Updated: (XERCESJ-1408) assertions facet validation rules, implementation improvements</title>
	<published>2009-12-02T07:42:20Z</published>
	<updated>2009-12-02T07:42:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Mukul Gandhi updated XERCESJ-1408:
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Description: 
&lt;br&gt;I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&lt;br&gt;I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&lt;br&gt;1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;(the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $value, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&lt;br&gt;2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;(the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&lt;br&gt;To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&lt;br&gt;I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;br&gt;&lt;br&gt;&amp;nbsp; was:
&lt;br&gt;I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&lt;br&gt;Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&lt;br&gt;I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&lt;br&gt;1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;(the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $variable, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&lt;br&gt;2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;(the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&lt;br&gt;To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&lt;br&gt;I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;br&gt;&lt;br&gt;&lt;br&gt;making minor changes to the text of the problem description. $value was incorrectly mentioned as $variable.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; assertions facet validation rules, implementation improvements
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1408
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XML Schema 1.1 Datatypes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.10.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mukul Gandhi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&amp;gt; I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&amp;gt; 1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;&amp;gt; (the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $value, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&amp;gt; 2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;&amp;gt; (the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&amp;gt; To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&amp;gt; I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611013&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26611013&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1408%29-assertions-facet-validation-rules%2C-improvements-tp26603251p26611013.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610741</id>
	<title>[jira] Updated: (XERCESJ-1409) Optimization for random indexed access upon NodeList</title>
	<published>2009-12-02T07:26:20Z</published>
	<updated>2009-12-02T07:26:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Ludger Bünger updated XERCESJ-1409:
&lt;br&gt;-----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Attachment: NodeListItemAccessPatch.txt
&lt;br&gt;&lt;br&gt;This patch additionally does some trivial index out of bounds checks.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Optimization for random indexed access upon NodeList
&lt;br&gt;&amp;gt; ----------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1409
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1409&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1409&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 3 Core)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Priority: Minor
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: NodeListItemAccessPatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Since Xerces stores children as a linked list, indexed access using NodeList.item(index) has an execution time of O(n).
&lt;br&gt;&amp;gt; That said, there are a few tweaks we still can do to keep absolute acces time low even though we won't change it from O(n).
&lt;br&gt;&amp;gt; Current Xerces imlementation already provides a simple optimization:
&lt;br&gt;&amp;gt; Currently, the last retrieved child node and it's index is cached.
&lt;br&gt;&amp;gt; Subsequent calls to ParentNode.nodeListItem start iterating the linked list of children from this position.
&lt;br&gt;&amp;gt; Assuming that quite a lot of random accesses are somewhat local to the last access point, this is a reasonable optimization.
&lt;br&gt;&amp;gt; However it improves nothing (but also does no harm) when accessing large child lists in a random pattern.
&lt;br&gt;&amp;gt; I suggest an additional tweak to be applied:
&lt;br&gt;&amp;gt; The idea is to add a simple calculation to determine whether it might require less iterations when iterating from the start or the end of the linked list instead of the last accessed ChildNode.
&lt;br&gt;&amp;gt; While this imposes a (relatively small) constant overhead per call of item (a comparison, an addition and a bitshift) this optimization should reduce the average number of linked list iterations required for a true random access by a factor of two while ensuring that the number of iterations will never exceed the number of iterations done by the current implementation.
&lt;br&gt;&amp;gt; Please review attached Patch.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610741&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610741&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1409%29-Optimization-for-random-indexed-access-upon-NodeList-tp26610668p26610741.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26610668</id>
	<title>[jira] Created: (XERCESJ-1409) Optimization for random indexed access upon NodeList</title>
	<published>2009-12-02T07:22:20Z</published>
	<updated>2009-12-02T07:22:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">Optimization for random indexed access upon NodeList
&lt;br&gt;----------------------------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Key: XERCESJ-1409
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1409&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1409&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Project: Xerces2-J
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Issue Type: Improvement
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Components: DOM (Level 3 Core)
&lt;br&gt;&amp;nbsp; &amp;nbsp; Affects Versions: 2.9.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reporter: Ludger Bünger
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Priority: Minor
&lt;br&gt;&lt;br&gt;&lt;br&gt;Since Xerces stores children as a linked list, indexed access using NodeList.item(index) has an execution time of O(n).
&lt;br&gt;That said, there are a few tweaks we still can do to keep absolute acces time low even though we won't change it from O(n).
&lt;br&gt;&lt;br&gt;Current Xerces imlementation already provides a simple optimization:
&lt;br&gt;Currently, the last retrieved child node and it's index is cached.
&lt;br&gt;Subsequent calls to ParentNode.nodeListItem start iterating the linked list of children from this position.
&lt;br&gt;Assuming that quite a lot of random accesses are somewhat local to the last access point, this is a reasonable optimization.
&lt;br&gt;However it improves nothing (but also does no harm) when accessing large child lists in a random pattern.
&lt;br&gt;&lt;br&gt;I suggest an additional tweak to be applied:
&lt;br&gt;&lt;br&gt;The idea is to add a simple calculation to determine whether it might require less iterations when iterating from the start or the end of the linked list instead of the last accessed ChildNode.
&lt;br&gt;&lt;br&gt;While this imposes a (relatively small) constant overhead per call of item (a comparison, an addition and a bitshift) this optimization should reduce the average number of linked list iterations required for a true random access by a factor of two while ensuring that the number of iterations will never exceed the number of iterations done by the current implementation.
&lt;br&gt;&lt;br&gt;Please review attached Patch.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610668&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26610668&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1409%29-Optimization-for-random-indexed-access-upon-NodeList-tp26610668p26610668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26606367</id>
	<title>[jira] Commented: (XERCESJ-1397) After invoking mutating methods upon CharacterData, DOMCharacterDataModified events are always thrown even if the content remains the same (i.e. no change happend)</title>
	<published>2009-12-02T01:56:20Z</published>
	<updated>2009-12-02T01:56:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; [ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784744#action_12784744&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&amp;focusedCommentId=12784744#action_12784744&lt;/a&gt;&amp;nbsp;] 
&lt;br&gt;&lt;br&gt;Ludger Bünger commented on XERCESJ-1397:
&lt;br&gt;----------------------------------------
&lt;br&gt;&lt;br&gt;Ok, I agree that backwards compatibility is important and leaving this the way it currently is does no harm.
&lt;br&gt;&lt;br&gt;We should close the issue.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; After invoking mutating methods upon CharacterData, DOMCharacterDataModified events are always thrown even if the content remains the same (i.e. no change happend)
&lt;br&gt;&amp;gt; -------------------------------------------------------------------------------------------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1397
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1397&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1397&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: DOM (Level 2 Events)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.9.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Ludger Bünger
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Attachments: DOMCharacterDataModifiedPatch.txt
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Invoking mutation methods upon the CharacterData interface (e.g. insertData, appendData, setNodeValue) always causes a DOMCharacterDataModified event to be thrown, even if the underlying character data remains the same (e.g. setting the same content twice).
&lt;br&gt;&amp;gt; According to the DOM Level 2 specification (&lt;a href=&quot;http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MutationEvent&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MutationEvent&lt;/a&gt;), the DOMCharacterDataModified is to be &amp;quot;fired after CharacterData within a node has been modified&amp;quot;.
&lt;br&gt;&amp;gt; It is debatable whether setting the same content twice falls under &amp;quot;CharacterData within a node has been modified&amp;quot; so i classified this issue as an improvement, not a bug.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26606367&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26606367&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1397%29-After-invoking-mutating-methods-upon-CharacterData%2C-DOMCharacterDataModified-events-are-always-thrown-even-if-the-content-remains-the-same-%28i.e.-no-change-happend%29-tp25702466p26606367.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26605302</id>
	<title>[jira] Updated: (XERCESJ-1408) assertions facet validation rules, implementation improvements</title>
	<published>2009-12-02T00:38:20Z</published>
	<updated>2009-12-02T00:38:20Z</updated>
	<author>
		<name>JIRA xerces-j-dev@xml.apache.org</name>
	</author>
	<content type="html">&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;[ &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel&lt;/a&gt;&amp;nbsp;]
&lt;br&gt;&lt;br&gt;Mukul Gandhi updated XERCESJ-1408:
&lt;br&gt;----------------------------------
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; Summary: assertions facet validation rules, implementation improvements &amp;nbsp;(was: assertions facet validation rules, improvements)
&lt;br&gt;&lt;br&gt;some minor changes to the subject
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; assertions facet validation rules, implementation improvements
&lt;br&gt;&amp;gt; --------------------------------------------------------------
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key: XERCESJ-1408
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; URL: &lt;a href=&quot;https://issues.apache.org/jira/browse/XERCESJ-1408&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://issues.apache.org/jira/browse/XERCESJ-1408&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Project: Xerces2-J
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Issue Type: Improvement
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Components: XML Schema 1.1 Datatypes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;Affects Versions: 2.10.0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Reporter: Mukul Gandhi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I think, implementation of following section of XSD 1.1 data types, xs:assertion facet spec need to be implemented in entirety, in Xerces-J: 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/TR/2009/CR-xmlschema11-2-20090430/#assertions-validation-rules&lt;/a&gt;&amp;nbsp;
&lt;br&gt;&amp;gt; Presently, the Xerces-J SVN code implements some parts of this spec. 
&lt;br&gt;&amp;gt; I find that following sections of the spec (quoted from the spec, itself), are not implemented correctly in Xerces-J: 
&lt;br&gt;&amp;gt; 1. The in-scope variables in the static context is a set with a single member. The expanded QName of that member has no namespace URI and has 'value' as the local name. The (static) type of the member is anyAtomicType*. 
&lt;br&gt;&amp;gt; (the present Xerces SVN implementation, doesn't strictly implements this. The current implementation, assigns specific &amp;quot;built in&amp;quot; XSD types to the xpath2 &amp;quot;dynamic context&amp;quot; variable $variable, like xs:string, xs:date, etc depending on the XSD type, that exists in the XSD 1.1 schema on the simple type definition (which has assertion facets). We need to improve this, as per the spec.) 
&lt;br&gt;&amp;gt; 2. There is no context item for the evaluation of the XPath expression. As a consequence the expression '.', or any implicit or explicit reference to the context item, will raise a dynamic error, which will cause the assertion to be treated as false. If an error is detected statically, then the assertion violates the schema component constraint XPath Valid and causes an error to be flagged in the schema. 
&lt;br&gt;&amp;gt; (the present implementation does cause a &amp;quot;xpath context&amp;quot; to exist, while evaluating the xs:assertion facet XPath expressions. the current implementation doesn't flag an error to the user, if an attempt is made to refer the expression '.' in assertion facet xpath expression. at least, the assertion should evaluate to false, in this case, even if we don't flag an explicit error for this.) 
&lt;br&gt;&amp;gt; To solve these issues, we also need to investigate the psychopath processor capabilities in this regard. 
&lt;br&gt;&amp;gt; I think, for the XSD 1.1 preview implementation, we have good enough spec conformance, to showcase the assertion facet implementation. But we can try to improve implementation of these parts of the spec, at the earliest.
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;This message is automatically generated by JIRA.
&lt;br&gt;-
&lt;br&gt;You can reply to this email to add a comment to the issue online.
&lt;br&gt;&lt;br&gt;&lt;br&gt;---------------------------------------------------------------------
&lt;br&gt;To unsubscribe, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26605302&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-unsubscribe@...&lt;/a&gt;
&lt;br&gt;For additional commands, e-mail: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26605302&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;j-dev-help@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/Xerces---J---Dev-f285.html&quot; embed=&quot;fixTarget[285]&quot; target=&quot;_top&quot; &gt;Xerces - J - Dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-jira--Created%3A-%28XERCESJ-1408%29-assertions-facet-validation-rules%2C-improvements-tp26603251p26605302.html" />
</entry>

</feed>
