|
eggie5 wrote:
Are you the guy who lost you windows XP CD? I saw your post somewhere, where someone told you where to download the ISO from MSDN... where is it?
I sure am that guy
You know that horrible tree-nav on the left? You have to wait until it is fully loaded, you can tell it is fully loaded when it closes up and not everything is expanded. I generally leave the MSDN Subscribers Download page open in the background for about 10 minutes before I try and find what I want in that tree-nav. It is there, under Platforms.
Paul Watson Bluegrass Cape Town, South Africa
brianwelsch wrote:
I find my day goes by more smoothly if I never question other peoples fantasies. My own disturb me enough.
|
|
|
|
|
Hi..
I'm interested in using an xml-based help system to develop a help system at my web site. I want to run this over the web, i.e., someone connects to a URL, and their browser renders a given help page. The system has to be only moderately fancy. I just want basic things like "BACK", "UP", an index, a table of contents, good-looking output, cross-links, and the ability to put arbitrary HML inside the actual page. I would be happy to edit the source for the help using the vi editor.
I could write my own, but I'd rather find something that suits my needs that already exists. I see that Webworks has a product called WordHelp, but WordHelp appears to be available only as part of WebWorks Publisher Professional, which costs $1295 , which is more than I want to spend. There is also something at http://www.isparp.ukgateway.net/angband/helppatch/ but that doesn't look like it has quite enough functionality.
Does anyone have any other ideas?
Andrew
|
|
|
|
|
|
I’m new to XML.
I read on http://www.w3schools.com/[^] that it’s important to understand that XML was designed to store, carry, and exchange data. XML was not designed to display data.
Why should I use XML in my website, when I’ve got a database driven website, and all my data is located in that database?
|
|
|
|
|
I'd pretty much say that if it ain't broke, don't fix it
When I was first introduced to XML, I went through the exact same thought process ("Why would I use this in my site?") and ended up dismissing it. However, it was good to at least know it existed; on a project a few months later, it suddenly dawned on me that XML would work really well for the task, and thus I set about learning as much as I could about XML-related technologies to get a grasp of what tools were available.
I think trying to graft XML into an existing (working) system is much like grabbing a hammer and pounding away at something until it looks like a nail. If you really want to get your feet wet in using XML, you can start by updating your site to be XHTML 1.0 valid. Then, play around with writing an XSLT translation to tweek things like removing links and extraneous style bits to produce a "printable" version of all your pages. Alternatively, you can learn the DOM or SAX API and write some code to do it. Either way, that should give you some ideas of how you can actually apply XML-related technologies.
Oh yeah, and have fun! Use XML to make your life easier, not harder.
- Mike
|
|
|
|
|
|
I am having a hard time converting a string representation of a xml-document into a dataset.
The case is:
1. I send a request to a server which answers with a xml-document in the form of a string.
2. Next I want to convert this string into a System.Data.DataSet and display it in a datagrid or some other.
It is giving me a really hard time figuring out how to do this.
I have tríed the following:
{
System.Xml.XmlDataDocument xmlDD = new System.Xml.XmlDataDocument();
System.Data.DataSet dsXML = new System.Data.DataSet();
xmlDD.LoadXml(strXml);
dsXml = xmlDD.DataSet;
}
This will generate following error "The IListSource does not contain any data sources."
I have tried the following, it works, but is a VERY bad idea for a webpage:
{
xmlDD.LoadXml(strXml);
xmlDD.Save(Server.MapPath("log") + "\\out.xml");
dsXml.ReadXml("\\out.xml");
}
Why can't I go directly from a string through a xmldocument to a dataset?
Any comments appreciated.
Preben Rasmussen
IT-consultant
|
|
|
|
|
One of the overloads of the ReadXml method accepts a TextReader object. The StringReader class is derived from TextReader , so you can just do:
System.IO.StringReader sr = new System.IO.StringReader(strXml);
System.Data.DataSet dsXML = new System.Data.DataSet();
dsXML.ReadXml(sr);
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
Thanks a lot - it works great. Just what I wanted.
Preben Rasmussen
|
|
|
|
|
I also find it annoying that there isn't a simple way of loading a dataset from a string. Here's one way that's a bit of a rigmarole but it does the job:
Dim srForData As System.IO.StringReader = New System.IO.StringReader(StringToLoadFrom)
Dim rdrForData As System.Xml.XmlReader = New System.Xml.XmlTextReader(srForData)
DataSetToLoad = New DataSet()
DataSetToLoad.ReadXml(rdrForData)
|
|
|
|
|
This one also works fine - thanks.
Preben Rasmusen
|
|
|
|
|
Ok, so I have this app that you fill in your subject and then the message and then it formats it in the particular way i told it to, onto my webserver as a .xml file....
XmlTextWriter writer = new XmlTextWriter("poofacedjohn.xml", null);
But, what I need is for the name of the xml file not to be poofacedjohn.xml, but rather the year, month, day, hour, and minute of the local machine...
like.....
20030426_1718.xml
2003 04 26 17 18
|year||month||day|_|hour||minute|
how would I acheive this...? I can do it in asp.net, but it's not working for me as just a regular windows app.
/\ |_ E X E GG
|
|
|
|
|
How are you trying do it, and what errors are you getting?
|
|
|
|
|
Im not getting an error, because I don't know how to do it.... that's my problem... any suggestions?
/\ |_ E X E GG
|
|
|
|
|
Try:
string name = DateTime.Now.ToString("yyyyMMdd_hhmm") + ".xml";
XmlTextWriter writer = new XmlTextWriter(name, null);
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
|
|
|
|
|
ok, i'll try it when I get home.
/\ |_ E X E GG
|
|
|
|
|
Wow, I can't believe I didn't think of that myselft...
that's just what I needed, thanks dude.
/\ |_ E X E GG
|
|
|
|
|
Wait, one more thing...
I have this programed saved in ...
C:\Inetpub\wwwroot\WebLog\Entries\bin
and it's working fine, but I need the .xml to be saved in....
C:\Inetpub\wwwroot\WebLog\Entries
How can I change the following to save the .xml file in the \Entries folder?
string fileName = DateTime.Now.ToString("yyyyMMdd_hhmm") + ".xml";<br />
XmlTextWriter writer = new XmlTextWriter(fileName, null);
/\ |_ E X E GG
|
|
|
|
|
Wait, nevermind... I figured it out myself...
string fileName = DateTime.Now.ToString("yyyyMMdd_hhmm") + ".xml";<br />
XmlTextWriter writer = new XmlTextWriter("C:/inetpub/wwwroot/weblog/entries/"+ fileName, null);
/\ |_ E X E GG
|
|
|
|
|
I have a xml file which has at the top but the file contains all printable ascii characters except one line.(This line is optional)
I am converting this file into html using xsl.
My xsl files top line is like this
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
However, when this non-printable ascii character exists xslt conversion does not work. When it is absent it works.
I searched google but no luck. How can I solve this?
Orcun Colak
|
|
|
|
|
I have a weblog thing I made in C#, ASP.NET, it works fine and everthing and stores each entry into and .xml file. Now usually I edit and make new entrys though internet explorer, but then I though how cool would it be to make an application in C# to take the .xml file edit it in the program, then click the save button and have it update the .xml!
Does anybody have any tips or places to look, for help on this???
/\ |_ E X E GG
|
|
|
|
|
Hi,
I need process two nodelists. so I have to open two
XmlDocuments at the same time.
Why does this code crash?
string filename = "D:\test.xml";
XmlDocument doc = new XmlDocument();
doc.Load(filename);
XmlNodeList nl = doc.SelectNodes("TestSequence");
string filenameOpt = "D:\Options.xml";
XmlDocument docOpt = new XmlDocument();
docOpt.LoadXml(filename);
readXML(nl);
|
|
|
|
|
One thing that is wrong is that the filename strings are not properly escaped.
Try changing
string filename="D:\test.xml"
to
string filename=@"D:\test.xml"
or
string filename=@"D:\\test.xml"
You will also need to do the same for "D:\Options.xml"
"\t" will translate to a tab character, which will cause the load of the first document to fail as it can not find the file, or possibly that the filename is invalid.
Another problem is that when you are loading the second document you are using LoadXml and not Load. "D:\Options.xml" is not a valid xml string.
I have made both these mistakes far too many times myself
Regards
Mark Smithson
|
|
|
|
|
thanks for your fast help!!
but i made an incomplete request - sorry
you were of course right but my problem appears
after i load my 2nd XmlDocument (see now a completer version)
string filename = @"D:\test.xml";
XmlDocument doc = new XmlDocument();
doc.Load(filename);
XmlNodeList nl = doc.SelectNodes("TestSequence");
string filenameOpt = @"D:\Options.xml";
XmlDocument docOpt = new XmlDocument();
docOpt.Load(filenameOpt);
//crash
readXML(nl);
|
|
|
|
|
Have you made sure that the second document is valid xml? The best way to do this would be to load the document in internet explorer. You will get an error if the document is not valid.
What exception message are you getting when the code crashes? This can usually lead you to the source of the problem.
Regards
Mark Smithson
|
|
|
|