Click here to Skip to main content
15,894,720 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionUnclosed tr tag Pin
John Jones II26-Feb-10 4:35
John Jones II26-Feb-10 4:35 
AnswerRe: Unclosed tr tag Pin
Richard MacCutchan26-Feb-10 5:23
mveRichard MacCutchan26-Feb-10 5:23 
AnswerRe: Unclosed tr tag Pin
Stuart Dootson26-Feb-10 7:45
professionalStuart Dootson26-Feb-10 7:45 
QuestionXML schema - Element name used to identify item problem... - need to use the element name to identify value when importing into SQL 2005 tables Pin
VicarH25-Feb-10 7:37
VicarH25-Feb-10 7:37 
QuestionDisplay a image in picturebox Pin
kpuneeth723-Feb-10 20:36
kpuneeth723-Feb-10 20:36 
AnswerRe: Display a image in picturebox Pin
Stuart Dootson23-Feb-10 20:50
professionalStuart Dootson23-Feb-10 20:50 
GeneralRe: Display a image in picturebox [modified] Pin
kpuneeth723-Feb-10 21:01
kpuneeth723-Feb-10 21:01 
GeneralRe: Display a image in picturebox Pin
Stuart Dootson23-Feb-10 21:36
professionalStuart Dootson23-Feb-10 21:36 
Here's a short C# program that will read the bit of XML you want and write it to the console.

using System.Xml.XPath;
using System.IO;

namespace ConsoleApplication1
{
   class Program
   {
      static void Main(string[] args)
      {
         // The XML file is specified as the first command line argument
         // imagePath will contain the image path contained in the XML file
         string imagePath = new XPathDocument(new StreamReader(args[0])).CreateNavigator().SelectSingleNode("/image/img").Value;
         System.Console.WriteLine(imagePath);
      }
   }
}


I've used XPath to navigate to the required element in the XML file (that's the .SelectSingleNode("/image/img") bit) and read the text there (the .Value bit). Simples.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

CodeProject MVP for 2010 - who'd'a thunk it!

GeneralRe: Display a image in picturebox Pin
kpuneeth723-Feb-10 23:53
kpuneeth723-Feb-10 23:53 
GeneralRe: Display a image in picturebox Pin
Stuart Dootson24-Feb-10 0:08
professionalStuart Dootson24-Feb-10 0:08 
GeneralRe: Display a image in picturebox Pin
kpuneeth724-Feb-10 1:26
kpuneeth724-Feb-10 1:26 
QuestionMultiple group using Muenchian Method [modified] Pin
ONeil Tomlinson23-Feb-10 4:15
ONeil Tomlinson23-Feb-10 4:15 
AnswerRe: Multiple group using Muenchian Method Pin
Stuart Dootson23-Feb-10 20:47
professionalStuart Dootson23-Feb-10 20:47 
GeneralRe: Multiple group using Muenchian Method Pin
ONeil Tomlinson24-Feb-10 0:05
ONeil Tomlinson24-Feb-10 0:05 
QuestionHow Do I deserialize the following Xml string? [modified] Pin
ashishtango22-Feb-10 23:05
ashishtango22-Feb-10 23:05 
AnswerRe: How Do I deserialize the following Xml string? Pin
Stuart Dootson22-Feb-10 23:54
professionalStuart Dootson22-Feb-10 23:54 
GeneralRe: How Do I deserialize the following Xml string? Pin
ashishtango23-Feb-10 16:52
ashishtango23-Feb-10 16:52 
GeneralRe: How Do I deserialize the following Xml string? Pin
Stuart Dootson23-Feb-10 20:27
professionalStuart Dootson23-Feb-10 20:27 
GeneralRe: How Do I deserialize the following Xml string? Pin
ashishtango24-Feb-10 18:35
ashishtango24-Feb-10 18:35 
QuestionAccessing a image from a xml file and display in visual studio picture box Pin
kpuneeth722-Feb-10 21:15
kpuneeth722-Feb-10 21:15 
AnswerRe: Accessing a image from a xml file and display in visual studio picture box Pin
Richard MacCutchan22-Feb-10 22:31
mveRichard MacCutchan22-Feb-10 22:31 
Questionxsd to entity [modified] Pin
pokiri22-Feb-10 17:45
pokiri22-Feb-10 17:45 
AnswerRe: xsd to entity Pin
Not Active22-Feb-10 21:01
mentorNot Active22-Feb-10 21:01 
QuestionHow to delete duplicate nodes from XML throgh C#? Pin
deadlyabbas18-Feb-10 19:12
deadlyabbas18-Feb-10 19:12 
QuestionProblem with MSXML6 + namespace + XPath Pin
Patrice Espie18-Feb-10 4:57
Patrice Espie18-Feb-10 4:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.