Guest User

Untitled

a guest
Jun 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. -<Mission xmlns:z="http:..." xmlns:i="http:..." xmlns="http:..." z:Id="1">
  2. +<ActiveBullsEye z:Id="2" i:type="BullsEye">
  3. -<ActiveFlightPlan z:Id="7" i:type="FlightPlan">
  4. <AIRTAC z:Id="8"/>
  5. <Active>false</Active>
  6. -<Aircraft z:Id="9" i:type="a:Tanker" xmlns:a="http:...">
  7. -<ACColor xmlns:b="http:...">
  8. <b:A>255</b:A>
  9. <b:B>169</b:B>
  10. <b:G>169</b:G>
  11. <b:R>169</b:R>
  12. <b:ScA>1</b:ScA>
  13. <b:ScB>0.396755248</b:ScB>
  14. <b:ScG>0.396755248</b:ScG>
  15. <b:ScR>0.396755248</b:ScR>
  16.  
  17. XElement xdocument = XElement.load(filepath) //This works
  18. XElement missionBlock = xdocument.Element("Mission") //(ERROR) This not get Mission tag
  19.  
  20. foreach( XElement acColor in missionBlock.Elements("ACColor") ) { (ERROR) Not found ACColor
  21. ...
  22. }
Add Comment
Please, Sign In to add comment