Hello all
Below is a complete xml file. I would like to extract the following tag <SearchResults> and all it's content into a new stream using c#
Note I DO NOT want <SearchResults xmlns:i="
http://www.w3.org/2001/XMLSchema-instance"> tag
I WANT <SearchResults> and all it's contents
Sorry if I was rude in using capitals!!!
Here goes the xml:
<s:Envelope xmlns:s="
http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<VacancyDetailsResponse xmlns="
http://Navms.Ms.ExternalInterfaces/2011">
<MessageId>8d947e6f-f3c2-4
6b5-a8e9-2
d7f397fb18
6</Message
Id>
<SearchResults xmlns:i="
http://www.w3.org/2001/XMLSchema-instance">
<AVMSHeader>
<ApprenticeshipVacanciesDe
scription>
If you are interested in finding out more about employing apprentices, the benefits they can bring to your business, and the benefits of Apprenticeship vacancies please visit our website and complete the online enquiry form.</ApprenticeshipVacan
ciesDescri
ption>
<ApprenticeshipVacanciesUR
L>
http:\\www.apprenticeshipvacancies.gov.uk\Employers.aspx</Appren
ticeshipVa
canciesURL
>
</AVMSHeader>
<SearchResults>
<VacancyFullData>
<VacancyLocationType>Stand
ard</Vacan
cyLocation
Type>
<VacancyAddress>
<AddressLine1>Kelvin Place</AddressLine1>
<AddressLine2/>
<AddressLine3/>
<AddressLine4/>
<AddressLine5/>
<County>Norfolk</County>
<GridEastM>585823</GridEas
tM>
<GridNorthM>281921</GridNo
rthM>
<Latitude>52.4033195889</L
atitude>
<Longitude>0.7319373790</L
ongitude>
<PostCode>IP24 3RR</PostCode>
<Town>Thetford</Town>
</VacancyAddress>
<ApprenticeshipFramework>P
rocess Manufacturing</Apprentices
hipFramewo
rk>
<ClosingDate>2012-11-30T00
:00:00</Cl
osingDate>
<ShortDescription>Great opportunity to work for a successful company in Thetford as a Manufacturer / Machinist.</ShortDescripti
on>
<EmployerName>Polypads Limited</EmployerName>
<LearningProviderName>Deli
vered by W S Training Ltd.</LearningProviderName
>
<NumberOfPositions>1</Numb
erOfPositi
ons>
<VacancyTitle>Manufacturer
/ Machinist</VacancyTitle>
<CreatedDateTime>2012-10-0
2T09:07:59
.023</Crea
tedDateTim
e>
<VacancyReference>98571</V
acancyRefe
rence>
<VacancyType>IntermediateL
evelAppren
ticeship</
VacancyTyp
e>
<VacancyUrl>
https://apprenticeshipvacancymatchingservice.lsc.gov.uk/NAVMS/Forms/Vacancy/VacancyDetails.aspx?Query=WgjHmG7hReZCalVznA0EzjTdgvTfmmXSS787Cl2KUOjAF0b6anssFkf0eoS3q02D1QEkH6w2AGnOpwHWszd%2bSPVQQaoRu5gPdXVyZlziKMJg0bJb9PJ1Axze9JCU5Mu4OcsJCktAOaW0ztnbbmujGMflOqnj9KKyxb8M2gXAxGGG7lW2Qo6sW62SndaKjHslTWXkGR8nydthAigiaEXo8Nd05GmR0TdmqDXPXwbWsCE2nUu9d8UpfE3eZDds%2bLx3z5N34NtrO8hFbaXB%2fHmNXg%3d%3d</VacancyUrl>
<FullDescription><![CDATA[
A fantastic opportunity for a horse enthusiast to work in a fast growing industry.<br />Main Duties:<br /><ul><li>Cutting and preparation of materials </li><li>Sewing </li><li>Eyeletting </li><li>Packing </li><li>Quality checking </li></ul>]]></FullDescrip
tion>
<SupplementaryQuestion1>Ho
w will you travel to work?</SupplementaryQuesti
on1>
<SupplementaryQuestion2>Ha
ve you got any experience with horses?</SupplementaryQues
tion2>
<ContactPerson>Geminesse Curtis- Training &Recruitment Administrator - 01473 604260 - gcurtis@wstraining.co.uk</
ContactPer
son>
<EmployerDescription>Polyp
ads manufacture horse tack and horse equipment for the equine industry. They sell to commercial and domestic customers. They currently employ 10 people.</EmployerDescripti
on>
<ExpectedDuration>15 months</ExpectedDuration>
<FutureProspects>This is a fast growing company, and there is potential to grow with it. Increase work load and tasks as well as increasing responsibilities. <br /><br />Possibilities of becoming an experienced machinist. This is a permanent position.</FutureProspects
>
<InterviewFromDate>2012-06
-04T00:00:
00</Interv
iewFromDat
e>
<LearningProviderDesc>WS Training offers apprenticeships in a wide variety of occupations. If you are interested in gaining a qualification while you work then contact us, whether you are already employed or need help finding a job. Apprenticeships allow you to "Earn While You Learn"</LearningProviderDe
sc>
<LearningProviderSectorPas
sRate>67</
LearningPr
oviderSect
orPassRate
>
<PersonalQualities><![CDAT
A[<ul><li>
Horse knowledge essential </li><li>Able to work as part of a team </li></ul><p>?</p><p>?</p>
]]></Perso
nalQualiti
es>
<PossibleStartDate>2012-06
-11T00:00:
00</Possib
leStartDat
e>
<QualificationRequired>Bas
ic Literacy and Numeracy skills</QualificationRequi
red>
<SkillsRequired><![CDATA[<
ul><li>Goo
d attention to detail </li><li>Experience using a sewing machine (desirable) </li></ul><p>?</p>]]></Ski
llsRequire
d>
<TrainingToBeProvided>Leve
l 2 in Manufacturing including technical certificate and key skills. This is a work based qualification and does not require day release to college.</TrainingToBeProv
ided>
<WeeklyWage>100.0000</Week
lyWage>
<WorkingWeek>Monday to Thursday 9am - 4:30pm</WorkingWeek>
<OtherImportantInformation
>From the 1st October 2010 a National Minimum Wage (NMW) for apprentices has been introduced for young people aged 16-18 and those aged over 19 in the first year of their Apprenticeship. The new rate is ?2.50 per hour. The new NMW applies to time working plus time spent training as this is also part of the Apprenticeship. Anyone not covered by the age category above will be entitled to the NMW appropriate to their age. <br /><br />Applications will be assessed and interviewed as soon as they are received, which may result in the vacancy closing before the advertised closing date, please apply as soon as possible to avoid disappointment.</OtherImpo
rtantInfor
mation>
<EmployerWebsite/>
</VacancyFullData>
</SearchResults>
<TotalPages>10</TotalPages
>
</SearchResults>
</VacancyDetailsResponse>
</s:Body>
</s:Envelope>
If anyone could make my New Year I would be ever in their debt
Thanks Puds 32