Hi
I'm having a problem with an XML file, most likely because of my lack
of understanding of XML schemas
I have the following XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Hello</display-name>
</web-app>
When I view it in a browser for example, some of the attributes of the
<web-appelement are missing. The only two attributes shown are
"version" and "xsi:schemaLocation".
Does anyone know why the other attributes are removed when viewed?
Many thanks
asciz 5 2593
<as***@starmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
Hi
I'm having a problem with an XML file, most likely because of my lack
of understanding of XML schemas
I have the following XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Hello</display-name>
</web-app>
When I view it in a browser for example, some of the attributes of the
<web-appelement are missing. The only two attributes shown are
"version" and "xsi:schemaLocation".
Does anyone know why the other attributes are removed when viewed?
That simply means that the "pretty-printing" your browser is using is quite
wrong!
Try viewing this xml file with (for examle) IE6 or IE7 and you'll see that
all attributes are displayed.
Of course, I'd not recommend trusting your browser (BTW, which one is it?)
for viewing xml!
Cheers,
Dimitre Novatchev as***@starmail.com wrote:
I have the following XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Hello</display-name>
</web-app>
When I view it in a browser for example, some of the attributes of the
<web-appelement are missing. The only two attributes shown are
"version" and "xsi:schemaLocation".
Does anyone know why the other attributes are removed when viewed?
Which browser is that, Mozilla or Firefox? In that case you are better
off to directly view the source of the loaded XML.
--
Martin Honnen http://JavaScript.FAQTs.com/
Hi, thanks for reply
I'm using Firefox version 1.5.0.7
I also have some other software that seem to do it, hence my problem.
It is JBoss version 3.2.3 that complains that the attributes are
missing, even though they are actually there in the XML file
Thanks
-asciz
On 19 Feb, 14:49, Martin Honnen <mahotr...@yahoo.dewrote:
a...@starmail.com wrote:
I have the following XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Hello</display-name>
</web-app>
When I view it in a browser for example, some of the attributes of the
<web-appelement are missing. The only two attributes shown are
"version" and "xsi:schemaLocation".
Does anyone know why the other attributes are removed when viewed?
Which browser is that, Mozilla or Firefox? In that case you are better
off to directly view the source of the loaded XML.
--
Martin Honnen http://JavaScript.FAQTs.com/ as***@starmail.com wrote:
I'm using Firefox version 1.5.0.7
Firefox uses a default XSLT stylesheet to transform the XML document to
some collapsible HTML pretty printing but unfortunately the XSLT
processor Mozilla has does not support the namespace axis so that is why
xmlns or xmlns:prefix attributes are not shown.
I also have some other software that seem to do it, hence my problem.
It is JBoss version 3.2.3 that complains that the attributes are
missing, even though they are actually there in the XML file
I don't know JBoss so I can't help. But not displaying attributes and
complaining that they are not there are different issues
--
Martin Honnen http://JavaScript.FAQTs.com/
Firefox uses a default XSLT stylesheet to transform the XML document to
some collapsible HTML pretty printing but unfortunately the XSLT processor
Mozilla has does not support the namespace axis so that is why xmlns or
xmlns:prefix attributes are not shown.
The "lack of namespace axis support" is not the reason -- the default
stylesheet is simply not doing what it's expected to do.
For comparison, see how the XPath Visualizer for Firefox (Mozilla) handles
and displays namespace nodes without problems: http://www.topxml.com/code/default.a...20021221025528
Cheers,
Dimitre Novatchev
"Martin Honnen" <ma*******@yahoo.dewrote in message
news:45***********************@newsspool1.arcor-online.net...
as***@starmail.com wrote:
>I'm using Firefox version 1.5.0.7
Firefox uses a default XSLT stylesheet to transform the XML document to
some collapsible HTML pretty printing but unfortunately the XSLT processor
Mozilla has does not support the namespace axis so that is why xmlns or
xmlns:prefix attributes are not shown.
>I also have some other software that seem to do it, hence my problem. It is JBoss version 3.2.3 that complains that the attributes are missing, even though they are actually there in the XML file
I don't know JBoss so I can't help. But not displaying attributes and
complaining that they are not there are different issues
--
Martin Honnen http://JavaScript.FAQTs.com/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ralf Wahner |
last post by:
Dear Masters of XML
As I'm new to XML Schema I dare to ask a possibly recurring
question: Given an element <elem> with two attributes @a and
@b. The attributes are bound by the condition, that...
|
by: Rohit Sharma |
last post by:
Hi all..
..NET + MSXML platform....VB
Need to build a list of all the entities and attributes to allow the user to
do search...how can i do that from the schema ??
Cheers
Rohit
|
by: Shailendra Batham |
last post by:
Hello Gurus,
I want to put some restrictions on my attribute tag in my XML Schema, anyone out there have any idea how to do that.
here is my XML and the XML Schema
<?xml version="1.0"...
|
by: Martin |
last post by:
Hi,
I have a xml file like the one below
<?xml version="1.0" encoding="utf-8"?><e1
xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2"
e1:rest="345"/>
If I try to create a...
|
by: c j anderson, mcp |
last post by:
Core Question: Is there a better way to dynamically pull the allowed
values of an attribute out of a dataset's schema.
I have an XML file that contains a string element with two attributes,...
|
by: craig.wagner |
last post by:
I have a situation where I need to carry additional information in an
XML Schema. What I've found to appear to work is doing something like
the following:
<xs:schema xmlns:xs="...
|
by: Mikus Sleiners |
last post by:
I have a task to create xml document from c# code.
I have example of that document should look like and also a xml schema.
I wonder if i can use this xml schema somehow ?
This is schema:
...
|
by: rautsmita |
last post by:
hello friends ,
i am using to jdk6 and JAXB2.0, i have geomtry.xsd file i am trying to compile this file using jaxb but i got some error i.e.The particle of the type is not a valid restriction of...
|
by: mk189 |
last post by:
Hi,
I am trying to create XML schema of custom markup language, enriched
by XHTML. In simplified version, the XML documet could look like that:
<a:alarm-manual
xmlns:a="alarm-manual"...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |