Is it possible to use a XML element from other file in another XML?
For instance, instead of having:
<document>
<a><!-- huge content --></a>
<b/>
</document>
I would like to have:
<document>
<a ref="aDef"/>
<b/>
</document>
Where is defined in its own XML and reused where needed.
I would like this to be done by the p...
I have the strangest problem I can't seem to figure out.
I have created a simple flash image gallery. Like every other gallery it gets photo information from an XML file. It works fine, I have had no issues working on the flash file locally.
However once I uploaded the .swf and .xml (and all the images) I ran into some trouble. The .s...
I'm trying to understand the correct interpretation of the "Namespaces in XML 1.0 (Third Edition)" definition for unqualified attribute namespaces.
"The namespace name for an unprefixed attribute name always has no value."
And later in the same section:
"The attribute value in a default namespace declaration MAY be empty. This ...
I am reading XML files of Office 2007 document using xquery. In these files the namespaces are also included. I need to retrieve the node of namespaces. I wrote xquery to fetch data and it works fine if I removed namespace from the source XML file else of the xquery resultset is empty. Wanna know how can I read namespaces and value from ...
I am trying to figure out how to do a Linq To Entities query on a SQL Server Database which contains an XML datatype:
I want to do a database level query that returns only a specified XML node that contains over 2000 Characters
Is this possible in Linq To Entities?
Update
well i want to do something like this in linq-to-entities bu...
I have a flash file with an xml file as flashvars. when I use this code it works in every browser, but not in IE 7 or higher.
OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="530" HEIGHT="410" id="usa_locat...
Hi guys,
I've spent so much time trying to figure this out. I'm building a dialog layout and trying to get the Title centered relative to the dialog while having 2 buttons on either side of the title. The buttons are to be 'gravity-ed' towards far left and far right.
The easy part is centering the dialog, OR doing the buttons far lef...
Here is the exact error I'm getting when I try to launch my default.aspx file from the published folder. Can anybody point me in the right direction?
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------...
hi all I'm trying to parse a DOM tree using Neko/Xerces in Java.
NodeList divs = this.doc.getElementsByTagName("DIV");
for(int i=0; i < divs.getLength(); i++) {
NodeList images = divs.item(i).parentNode().getElementsByTagName("IMG");
// operate on these
}
is what I'd ideally like to do. It seems I can only call getElementsByT...
I know how white space is handled in text nodes for XML and HTML, but I'm uncertain about white spaces inside tag elements themselves. Obviously, white spaces are used inside tags to separate attributes, but is it valid to have white spaces before the '<' or '>'?
For example:
< foo >
< /foo >
Or even:
<foo>
< / foo >
Are these...
hi guys, im currently parsing an xml file that is hosted on another PC via hosting a Apache http server which works fine. Now is it possible to code it in such a way that the iPhone deletes the xml file on that pc?
im currently using a NSMutableURLRequest and setting it to an NSData.
NSError * error;
NSURLResponse * response;
NSMuta...
Using XSD, is it possible to constrain the total text within a Node.
In the example below, I want Address Node content to be restricted to 255 characters.
<Address>
<Line1>Text</Line1>
<Line2>Text</Line2>
<City></City>
<Street></Street>
<State></State>
<Country></Country>
</Address>
So, if I only had Line1 and...
I am getting this error when parsing an incorrectly-generated XML document:
org.xml.sax.SAXParseException: The value of attribute "bar" associated with an element type "foo" must not contain the '<' character.
I know what is causing the problem. It is this line:
<foo bar="x<y">42</foo>
It should have been
<foo bar="x<y">42</fo...
I am working with Jsbs and want to select a DBMS for my application that require a native XML database. Can you people guide me?
1) how many DBMS are supported by Java (is it true almost all DBMS are supported by java?)
2) Which one will be the best selection for XML storage and retrieval?
Thanks in advance.
...
I just received an error a while ago from this code:
private void ShowXMLDatatoRTB() {
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load("XMLFile.xml");
var persons = from person in xmlDoc.Descendants("Person")
select new
{
Name = person.Element("Name").Value,
City = person.Elem...
Hi All,
I have a c# server and a java client. Currently they pass plain text between each other using sockets. Now I want to change these sockets to communicate in XML. I can implement the java side, But i do not know how to implement the c# server side so that the server and the client could communicate without any problem.
Are there an...
I'm already generating an excel XML file (.xml) containing 2 worksheets.
issue #1:
the people downloading the XML file wouldn't know to open the file in Excel. (they'd complain.)
solution #1:
I rename the file to .XLS instead of .XML.
issue #2:
when opening the file in Excel i get the this error:
The file you are trying to open, ‘...
Hi,
I am having the xml database with the relations. i want to manipulate with the xml data inside this db. but which are the options present in c# to do this? As I know,
xml parsers,LINQ,Dataset. is there any other option present. and which way will perform faster if we apply on the same xml database.
Edited: Is this difficult question...
Hi,
I have a XML file which contains the following:
<config>
<webservices>
<webservice>
<name>A</name>
<value>http://www.123.com</value>
</webservice>
<proxy enabled="false" useiedefault="false">
<name>
</name>
<value>
</value>
</proxy>
</webservices>
</config>
I...
I have Xerces and Oracle XML parsers both in my application's classpath (don't ask why).
When I create a new javax.xml.parsers.DocumentBuilderFactory, the classloader automatically picks up the Oracle XML parser. However, it's not a full/proper implementation, so it's giving me headaches.
Is there a way I can force/tell the classloader...