Skip to content

Tag Archives: element

Does anybody know how to convert Excell Spreadsheet to an XML file. Programmatic or not?

I need to convert a Excell spreadsheet to an XML file. The first row is the header of the spreadsheet, I would like the header to be the Element Nodes of the XML file. I was expecting that Excell should have that option but it doesn’t. My version of Excel is 2007. Short of writing [...]

How do you add links in XML elements?

I have an xml file that I’m using to to feed the news section on my website and I would like to put "a href" links in them. For example if I want to send visitors to another page I would make part of the text a link. When I try this and read the [...]

I am writing an Xslt .I have the input xml and output xml elements name same, but , defined in different xsds.

I want to use the Copy-of function of xslt for better result. The problem is since both the source elements and target elements are defined in different xsds the namespace prefix will be a barrier to use copy-of function. Is there any way to replace the namespcae prefix of an element and still use a [...]

XML Elements or Attributes? Which is ideal in a XML DTD for accuracy?

I am creating a storage DTD for MP3 collection and want to eventually make sure it has the flexibility for additional levels of granularity and easy backward compatible reconstruction. Do you think it makes sense to use a attribute on element approach of just elements? Or better yet when is the best use of attribute?

When validating XML and XHTML we probably encountered the error message?

"Element violates enclosing tag’s content model". What does that mean? Please answer briefly.Thanks

How do I read data in a XML file in Java?

I need to read an XML file in java. The XML file has a reference to an xsd in it’s <!DOCTYPE..> element. Something like noNameSpace = "D:\Xsd.xsd" I need to read this reference using Java. How do I do it? SAXParser is the parser im using…

What is the difference between a XSD in XML and a DTD in XML?

I was told that a DTD specifies the data elements and the limitations of each element. Those data elements are later used in the XML document. But I was told that they are doing away with DTDs in favor for XSD. I can’t seem to find much information about XSD. Is XSD and DTD the [...]

What is the EJB annotation equivalent for res-sharing-scope xml element?

We used <res-sharing-scope> element in ejb-jar.xml to specify the shareable or unshareable. How can we do this by using annotations in EJB 3.0? (without using the a deployment descriptor)

How do I add elements to an xml document with the php xml dom?

For example, given the xml file below: <?xml version="1.0" encoding="utf-8"?> <root> <child>abcdefgh</child> <secondchild>ijklm</secondchild> </root> How would I add an element <thirdchild> after <secondchild> with the php xml dom?

Is Flex Builder really worth it to someone who knows AS and XML?

I’m looking into to starting Flex development. I’ve been developing in AS and XML for years now so I’m pretty comfortable with the two. Flex is free and open source. I looked at Flex Builder and it really just seems to add a WYSWYG element/automation to Flex and some more components. Am I missing something [...]