EDN Admin
Well-known member
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Hi,
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Xml Namespace is causing many headaches for xpath extraction, thats the conclusion I made while trying to find the answer for my question just now. Now I am almost certain that there might not be any good solution to my question, but let me still attempt my
luck here.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Here goes my question, we all know that XPath does not support anonymous namespaces, so we have to assign it a name for the query. However, in my case, the query xml tag is constant, while the namespace might/would be different, yet I need to apply the
same operation.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Let me explain with a simple example, say that the xml tag that I need to query is always //saleprice, and the operation is always discount by 10%. However, the namespace might be different: fruit, frozen-food, caned-food, etc, etc.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
This is just an example, but explain my problem well. Is there any generic way to apply my discount to <strong style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-weight:bold; font-style:inherit; font-family:inherit; margin-bottom:0px; outline-style:initial; outline-color:initial; padding-bottom:0px all //saleprice, <strong style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-weight:bold; font-style:inherit; font-family:inherit; margin-bottom:0px; outline-style:initial; outline-color:initial; padding-bottom:0px regardless what
the namespaces are?
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
yours helpless
View the full article
Hi,
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Xml Namespace is causing many headaches for xpath extraction, thats the conclusion I made while trying to find the answer for my question just now. Now I am almost certain that there might not be any good solution to my question, but let me still attempt my
luck here.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Here goes my question, we all know that XPath does not support anonymous namespaces, so we have to assign it a name for the query. However, in my case, the query xml tag is constant, while the namespace might/would be different, yet I need to apply the
same operation.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
Let me explain with a simple example, say that the xml tag that I need to query is always //saleprice, and the operation is always discount by 10%. However, the namespace might be different: fruit, frozen-food, caned-food, etc, etc.
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
This is just an example, but explain my problem well. Is there any generic way to apply my discount to <strong style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-weight:bold; font-style:inherit; font-family:inherit; margin-bottom:0px; outline-style:initial; outline-color:initial; padding-bottom:0px all //saleprice, <strong style="border-top-width:0px; border-right-width:0px; border-bottom-width:0px; border-left-width:0px; border-style:initial; border-color:initial; font-weight:bold; font-style:inherit; font-family:inherit; margin-bottom:0px; outline-style:initial; outline-color:initial; padding-bottom:0px regardless what
the namespaces are?
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
<p style="border-style:initial; border-color:initial; font-family:Segoe UI,Lucida Grande,Verdana,Arial,Helvetica,sans-serif; outline-style:initial; outline-color:initial; padding-right:0px; border-right-style:none; border-bottom-style:none; border-left-style:none; border-width:initial; border-color:initial; list-style-type:none; color:#333333; font-size:13px; line-height:16px; text-align:left
yours helpless
View the full article