I've been running into alot of limitations with the web.config replacement code in VS 2008's Web Deployment Project. Some of these seem to be:
Sectionsgroups cannot be replaced, only sections. Now if I just knew what sections was.
There seems to be some requirement behind the replacement. It's not just a "dumb" textual replacement. Thi...
Hi
I've got XML feed from public google calendar. Looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<feed xmlns='................' xmlns:gd='http://schemas.google.com/g/2005'>
<id>http://www.google.com/calendar/feeds/........./public/full</id>
<updated>2009-08-24T10:57:00.000Z</updated>
<category schem...
Currently I have some legacy ASP.NET 2.0 code that uses the ASP Xml web control like this:
<asp:Xml ID="XmlResult" runat="server" />
This is used to perform an XSLT transformation in c# code-behind like this:
XslTransform xslt = new XslTransform();
xslt.Load(Server.MapPath("~/xslt/MyXsltFile.xslt"));
XmlResult.Transform = xslt;
XmlRe...
Hi.
I'm marshalling object into xml file. How to add comments into that file?
...
i want to parse a file which is similar to a HTML file . Its not exactly a html file.It can contain some user defined tags. I dont know in advance how the tags are nested in one another in advance.The tags may also have attributes.
I think i shold use a SAX parser. Does java have a inbuilt SAX . Can i call a function when i encounter eac...
When I receive XML data (via a Twitter API call, in this instance), I imagine it's best practice to somehow validate it before I begin working with it? My app has had a lot of untractable issues lately, and I want to rule out bad XML data.
Does XML ever go "bad" somehow? Would an overloaded server like Twitter's ever spit out just half ...
I want to take an XML file and replace an element's value. For example if my XML file looks like this:
<abc>
<xyz>original</xyz>
</abc>
I want to replace the xyz element's original value, whatever it may be, with another string so that the resulting file looks like this:
<abc>
<xyz>replacement</xyz>
</abc>
How would you do...
I have an XML view in a rails app, and need to insert in XML from another file for testing purposes.
I want to say "builder, just stuff this string in blindly, because it's already xml", but I can't see to see anything in the docs that does that.
...
I have an XML file format that contains a structure of questions:
<question id="q101">
<text>Do you like the color red?</text>
<answer>yes</answer>
<answer>no</answer>
</question>
<question id="q102">
<text>What is your favorite color?</text>
<answer>red</answer>
<answer>blue</answer>
<answer>white</answer>
<answer>yello...
So, I have a Microsoft Word 2007 Document with several Plain Text Format (I have tried Rich Text Format as well) controls which accept input via XML.
For carriage returns, I had the string being passed through XML containing "\r\n" when I wanted a carriage return, but the word document ignored that and just kept wrapping things on the ...
I've got a fairly big XML file that I need to parse into a .NET class structure (to be mapped to a fixed-length record format and transmitted via MQ). Performance is important, but not absolutely critical.
I almost always use XPathNavigator to read XML files because it's much easier than XmlReader. On the other hand, I know XmlReader i...
I have an auditing/logging system that uses raw XML to represent actions taken out by an application. I'd like to improve on this system greatly by using an XML column in a table in the application's SQL Server database.
Each row in the table would contain one log entry and each entry should contain one or more tags that are used to de...
I want to parse a document that is not pure xml. For example
my name is <j> <b> mike</b> </j>
example 2
my name is <mytag1 attribute="val" >mike</mytag1> and yours is <mytag2> john</mytag2>
Means my input is not pure xml. ITs simliar to html but the tags are not html.
How can i parse it in java?
...
Hi.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!--This is auto-generated file. Do not change it!-->
<DB>
<foo />
<bar />
</DB>
I have one problem with it - when i start parsing (DOM) it says that document is not valid.
I've checked what's wrong and the problem is:
Line: 4
Column: 6
Error: Can not find declaration...
I'm writing data driven unit tests using an Xml datasource in C# VS2008.
Attributes look something like this and everything works awesomely.
[DeploymentItem("HtmlSchemaUrls.xml")]
[DataSource("DataSource", "Microsoft.VisualStudio.TestTools.DataSource.XML", "|DataDirectory|\\HtmlSchemaUrls.xml", Microsoft.VisualStudio.TestTools....
I'm building my own custom RSS feed in PHP. I want the tag to contain line breaks to make the text more readable. However, I can't seem to figure out how to do it correctly. No matter what I try some RSS reader interprets it incorrectly. Is there some standard best way to add a line-break in and RSS 2.0 feed?
I have tried "\n", which w...
I have this actionscript so far:
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("nav.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseBooks(xmlData);
}
function ParseBooks(bookInput:XML):void {...
I'm making use of an API on the internet that is marshalling objects to XML files. Given that the XSD files are also available I'd like to be able to unmarshall them back in to Java objects once I've downloaded the files.
After looking around it looks like JAXB is the default library for doing this in Java, but as I'm developing a mobil...
I have some xml like this:
<Action id="SignIn" description="nothing to say here" title=hello" />
Using LINQ to XML, how can I get the inner value of id? I am not on my dev machine (anothe machine with no dev stuff but so credentials) but I haven't tried:
var x = from a in xe.Elements("Action")
select a.Attribute("id").Value
C...
I've been trying to get the UNIQUE constraint placed on some attributes i have in a fairly basic XSD Schema. I'm using XMLSpy and i'm wanting to put a unique constraint around TEMPLATE.ID for my nodes (ie its important that they remain unique).
I've put the below in place and tried the following:
Secenario 1
<xs:unique name="uniquevie...