Hi,
I have a program that contacts Amazon Web Services, and I want to use Xalan to apply XSLT files to simplify searches within the results. The XSLT works fine against sample XML saved locally, but when I pass in the contents of a URL, I get different results.
I discovered the difference is the sample XML doesn't have the xmlns attribute in the root element. When I copy the contents of the URL (which includes the xmlns attribute, below) to a file, I get the same (bad) results. Is there a variable in the Xalan objects I need to set?
Thanks in advance,
Elias
<?xml version="1.0" encoding="UTF-8"?>
<ItemLookupResponse xmlns="foo.bar">
<OperationRequest> ... etc
I have a program that contacts Amazon Web Services, and I want to use Xalan to apply XSLT files to simplify searches within the results. The XSLT works fine against sample XML saved locally, but when I pass in the contents of a URL, I get different results.
I discovered the difference is the sample XML doesn't have the xmlns attribute in the root element. When I copy the contents of the URL (which includes the xmlns attribute, below) to a file, I get the same (bad) results. Is there a variable in the Xalan objects I need to set?
Thanks in advance,
Elias
<?xml version="1.0" encoding="UTF-8"?>
<ItemLookupResponse xmlns="foo.bar">
<OperationRequest> ... etc