|
My company uses XML received by email all the time to receive information from different sources everyday. I'm looking to improve the speed a little bit more as email has normally a delay. What's the best way to receive those forms? I created a webservice, however some of our providers do not want to spend the time building a solution. I would like something I can provide to them in order to received those forms.
Any ideas?
Al
My eMail control
My Blog
|
|
|
|
|
Hard to say what is "best" when you don't have all the information. Here is a wild guess. If you have a Web Server you could supply a web page that allows the user to Upload the file to your server.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Or really splash the cash and invest in biztalk...
|
|
|
|
|
No doubt. However I was guessing that his concern about the time lag was due in large part to the SMTP lag that sometimes occurs. Biztalk would have no effect on that.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Hello,
I tried searching the net but I couldn't find this info... Does an xs:time attribute have an upper limit? Like, maybe the maximum value is 23:59? or can it contain time values which are greater than 1000:00 ? This is for an attribute that is more of a duration time attribute than a date time attribute and I'm wondering whether I should use xs:time or xs:string instead.
Thanks,
~Rafferty
|
|
|
|
|
perhaps you could use xs:long and have the value be the duration in milliseconds?
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
I just found out that there's an xs:duration datatype. That'll work very well.
but just out of curiousity, does xs:time handle time values that is more than 24 hrs?
Thanks,
~Rafferty
|
|
|
|
|
Rafferty Uy wrote: does xs:time handle time values that is more than 24 hrs?
No. from the W3C[^]
[Definition:] '00:00:00', up to but not including '24:00:00'
(which is identical with '00:00:00' of the next day).
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
Hello, everybody. Sorry to disturb you all.
Currently, I have a speech recording and playback software developed by Microsoft Visual C++ 6.0. The software is used to train children with speech problem and scores will be calculated and showed at the end of each practice session. The software is able to record and playback real-time.
Children use this software at home and save their practice records in a single floppy disk. Then, children will bring the floppy disk with practice records inside when they return to our centre.
I have two problems with the xml programming part. My software automatically created history file (in XML format) to display the scores of the children’s practices. The history file (in XML format) is saved by the children in floppy disk when they return to our centre.
But, the data or information in the XML is in a mess where all data are put together. Do you mind to tell me what should I do to create more organized XML format? The therapist needs to scroll in order to read the scores. I have the program codes of XML in four of my cpp files.
The second question is how to call or open XML file (the history file) from my software?
My codes are as below. After I execute the program, it is error free and the File Open dialog box is popped up but no XML file came out after I select the desired XML file. My codes are as below:
void CSpeechDlg::OnScore() <br />
{<br />
CFileDialog openfile(TRUE,NULL,NULL,OFN_OVERWRITEPROMPT,"XML File (*.xml)|*.xml|");<br />
if (openfile.DoModal()==IDOK)<br />
{<br />
CString cs=openfile.GetFileName();<br />
char* filename=new char[cs.GetLength()+1];<br />
strcpy(filename,cs);<br />
}<br />
<br />
}<br />
I promise I wont disturb you a lot, I promise I will do my best. Can you please help me?
I am totally new to this as the software is written by one of my previous friend who worked together with me in a voluntary speech rehabilitation centre. We need this software to train children in the centre. I work part time there.
Hope you can give me some guidances on how to do it. I promise I can learn as independent as possible but I really need your guidance at this very beginning, please.
Please, I really appreciate all your help.
|
|
|
|
|
bella_11041988 wrote: The second question is how to call or open XML file (the history file) from my software?
From VC 6 you will want to use an XML library (parser). Probably the most widely used in VC 6 applications will be the MSXML library that is located in msxml(n).dll where "(n)" is the installed version on a given computer.
YOu can find many articles on using MSXML from VC++ on MSDN, CodeProject and many other sources.
Good luck.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum
led mike
|
|
|
|
|
I am kinda new to using regular expressions, but I need to create a new one to use in an XML schema for login name validation and I can't get this to work.
I need a regular expression that will allow string values of A-Z ,a-z, numeric (0-9), "@", "-", "_", ".", and "'" as login name allowable characters. Any help or direction would be appreciated.
Thanks
|
|
|
|
|
Give this a shot...
((?: \w | \d | @ | - | _ | \. | ')+)
the (?: ) groups the alternatives without capturing. The outer () capture the full string.
|
|
|
|
|
when i want to receive fom MSMQ this exception comes(Generic Exception was thrown :system.xml:data at the root level is invalid. line 1, position 1.),
the problem comes because i was send message from old MSMQ, can any one tell me how to resolve this ?
is xml that used with old msmq not work with xml that used with new msmq?
is there any way to fix this problem ?
|
|
|
|
|
Hi guys,
I want to write a xslt code that creates a csv file (with all output in it) & saves to a particular folder without any manual intervention.
I've been looking xslt function definitions for file processing but with no success.
Could anyone throw me the snippet please
Thanks
Mohan
|
|
|
|
|
There are no XSLT functions for file processing - XSLT is not a system programming language. You can only save the result (using any other -system-level- language) coming from your XSLT processor.
Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|
|
Hi,
I'm looking for resource on calling xsl(or xslt) from c++, i'd been looking this for a week almost & haven't come across a good usefull one.
So could some one please let me know, even a code snippet will do.
Thanks.
Mohan
|
|
|
|
|
Here is one:
(making XSLT transform with MSXML. C++ sample is 3rd from top)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/af1fe9e0-b3f4-4ea1-8b6c-ab25a619be59.asp
Dmitry.
-------------------------
Don't worry, be happy )
|
|
|
|
|
I am attempting to extract some data from the xml below with the following code:
XPathDocument xmlDoc = new XPathDocument(URL that I supply);
XPathNavigator nav = xmlDoc.CreateNavigator();
nav.Select("/ISBNdb/BookList/BookData/AuthorsText");
Console.WriteLine(nav.Value);
The problem is the value returned is all of the elements concatenated together:
Applied Microsoft. NET framework programming in Microsoft Visual Basic. NETJeffrey Richter, Francesco BalenaRedmond, Wash. : Microsoft Press, c2003.
I have tried everthing and have no idea why I am getting this behavior. Any help would be greatly appreciated. Thanks.
Gary
This is the xml that is loaded into the XPathDocument:
<ISBNdb server_time="2006-05-03T12:48:06">
<BookList total_results="1" page_size="10" page_number="1" shown_results="1">
<BookData book_id="applied_microsoft_net_framework_programming_in_microsoft_vis" isbn="0735617872">
<Title>Applied Microsoft. NET framework programming in Microsoft Visual Basic. NET</Title>
<TitleLong></TitleLong>
<AuthorsText>Jeffrey Richter, Francesco Balena</AuthorsText>
<PublisherText publisher_id="microsoft_press">Redmond, Wash. : Microsoft Press, c2003.</PublisherText>
<Details dewey_decimal="005.2/76" physical_description_text="xxxii, 609 p. : ill. ; 23 cm." language="eng" edition_info="" dewey_decimal_normalized="5.276" lcc_number="QA76.625" change_time="2003-10-23T02:17:24" price_time="2006-05-02T20:31:22" />
</BookData>
</BookList>
</ISBNdb>
-- modified at 10:50 Friday 5th May, 2006
|
|
|
|
|
You should use the XPathNodeIterator which is returned from the Select method, not the Value of the navigator.
private void Form1_Load(object sender, System.EventArgs e)
{
XPathDocument xmlDoc = new XPathDocument("..\\..\\data.xml");
XPathNavigator nav = xmlDoc.CreateNavigator();
XPathNodeIterator iter = nav.Select("/ISBNdb/BookList/BookData/AuthorsText");
while( iter.MoveNext() )
Console.WriteLine(iter.Current.Value);
}
Josh
|
|
|
|
|
I tried that as well. I got the same exact result. Did it work correctly for you?
|
|
|
|
|
|
VS 2003 or VS 2005? I am using 2003. Any thoughts on why it would work for you and not me? Thanks!
|
|
|
|
|
2003. I don't know what the difference could be. I posted the exact code that worked for me, so it must be an Act of God.
Josh
|
|
|
|
|
I enjoyed the sense of humor.
|
|
|
|
|
I tried Josh's code in 1.1 and it worked as advertised!
|
|
|
|