Вы находитесь на странице: 1из 5

8 abril de 2013 XML introduccin

XML eXtensible Markup Language Diseado para almacenar y transportar datos. erramienta de so!t"are independiente para transportar in!ormacin. #o es para mostrar datos$ para eso es %tml. De!ine sus propios tags. &uto descripti'o
<note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>

(sado en desarrollo de aplicaciones "eb Mostrar datos din)micos por medio de instrucciones *a'a+cripts &lmacenado en !ormato te,to$ lo mas sencillo a prueba de cambios. -uede ser le.do por di!erentes plata!ormas. /structura0 1omien2a de la ra.2 y 'a a las %o*as. 3note4 ra.2 3to43!rom43%eading43body4 %i*os.
<root> <child> <subchild> </child> </root>

</subchild>

Libro en XML
<bookstore> <book category!"#$$%&'("> <title lang!"en">)veryday &talian</title>

<author>(iada De *aurentiis</author> <year>+,,-</year> <.rice>/, ,,</.rice> </book> <book category!"#0&*DR)'"> <title lang!"en">0arry 1otter</title> <author>J % Rowling</author> <year>+,2,</year> <.rice>+3 33</.rice> </book> <book category!"4)5"> <title lang!"en">*earning 67*</title> <author>)rik T Ray</author> <year>+,,3</year> <.rice>/3 38</.rice> </book> </bookstore> Root9 5ookstore )lements9 #hildren9 5ooks Title: autor: year: .rice

Todos los tags deben tener su correspondiente que cierra. <p> ,,, </p> Bien anidados. <b><i> </i></p> Valores atributos entre comillas <node date= !"#"/"$/#% > &tributos
<.erson se;!"female"> <firstname><nna</firstname> <lastname>=mith</lastname> </.erson>

'lementos
<.erson> <se;>female</se;> <firstname><nna</firstname> <lastname>=mith</lastname> </.erson>

'(tendidos

<note> <date> <day>2,</day> <month>,2</month> <year>+,,-</year> </date> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note>

')emplo cat*logo de +,s-

')emplo de .actura electr/nica<?xml version!"2 ," encoding!">T?@-"?> <Comprobante ;mlns!"htt.A//www sat gob m;/cfd/+" ;mlnsA;si!"htt.A//www w/ org/+,,2/67*=chema@instance" ;siAschema*ocation!"htt.A//www sat gob m;/cfd/+ htt.A//www sat gob m;/sitioBinternet/cfd/+/cfdv+ ;sd htt.A//incuvo; com/cfd/incuvo; ;sd" version!"+ ," serie!"<<" folio!"2C23" fecha!"+,22@,/@+DT2-A+,A/C" sello!"rEoF3CEk7eGCgt33/DnEua4i<6wH'=eJ%T+DgJ-.$u#/t0o3=Iv5Ct,I7,hH,/iv0#/g4v#+k% 3nG8J;#iJ3Cf,-.y(1,,H=DJI,/*#.lT;b/n<=cD/gDE8*J+R4,drhDdtE+>47frrK)D6fH3l/-kig08L cvo-/E-&iJ*5%m*c!" no<.robacion!"+C/-JJ" ano<.robacion!"+,2," ti.oDe#om.robante!"ingreso" formaDe1ago!"#ontado en una sola e;ibiciMn" no#ertificado!",,,,2,,,,,,2,+/,+,-2" certificado!" 7&&)/T##<L4g<w&5<g&>7I<w7D)w7D<w7D<;7D<w7D<J7DcwDGNJ%oK&hvc'<G)?5G<wgg?v7Rgw?gNDE Lb/-J-L6in/&sc#mK+ohb(C/Cs?'iCsoJT" subTotal!"2J8, 8," descuento!"," 7oneda!">=D" Ti.o#ambio!"2+ 2/" total!"2C-+ 8-"> <Emisor rfc!"#$=2,22,3G/C" nombre!"#ofradia =oftware: = < de # E "> <DomicilioFiscal calle!"<v DivisiMn del 'orte" no);terior!"2/8J"

no&nterior!"+,+" colonia!"*etrOn@Ealle" localidad!"Distrito ?ederal" referencia!")sFuina con 7iguel *aurent" munici.io!"5enito JuOreI" estado!"Distrito ?ederal" .ais!"7P;ico" codigo1ostal!",/C8,"/> <ExpedidoEn calle!"<v DivisiMn del 'orte" no);terior!"2/8J" no&nterior!"+,+" colonia!"*etrOn@Ealle" localidad!"Distrito ?ederal" munici.io!"5enito JuOreI" estado!"Distrito ?ederal" .ais!"7P;ico" codigo1ostal!",/C8,"/> </Emisor> <Receptor rfc!"J##3C,2221DC" nombre!"Juan #om.any: = < de # E "> <Domicilio calle!"<v &nsurgentes =ur" no);terior!"2C,," no&nterior!"/,2" colonia!"(uadalu.e &nn" localidad!"Distrito ?ederal" munici.io!"Qlvaro $bregMn" estado!"Distrito ?ederal" .ais!"7P;ico" codigo1ostal!",2,+,"/> </Receptor> <Conceptos> <Concepto cantidad!"2," unidad!"0ora" no&dentificacion!"=1R)DE" descri.cion!"hora de servicios .rofesionales en anOlisis de Redes y Eo&1" valor>nitario!"2+, ,," im.orte!"2+,, ,,"/> <Concepto cantidad!"/" unidad!".I" no&dentificacion!"CD/2i" descri.cion!"T)*)?$'$ <<=TR< 7$D CD/2i =&1" valor>nitario!"-/ 8," im.orte!"+8, 8,"> <Parte cantidad!"2 ,," no&dentificacion!",D2,/C2#3D" descri.cion!"T)*)?$'$ <<=TR< 7$D CD/2i =&1"> <InformacionAduanera numero!"/DD-,,,8C/D" fecha!"+,2,@22@,8" aduana!"*<R)D$"> </InformacionAduanera> </Parte> <Parte cantidad!"2 ,," no&dentificacion!",D2,/C2#32" descri.cion!"T)*)?$'$ <<=TR< 7$D CD/2i =&1"> <InformacionAduanera numero!"/DD-,,,8C/D" fecha!"+,2,@22@,8" aduana!"*<R)D$"> </InformacionAduanera> </Parte> <Parte cantidad!"2 ,,"

no&dentificacion!",D2,/C2#<?" descri.cion!"T)*)?$'$ <<=TR< 7$D CD/2i =&1"> <InformacionAduanera numero!"/DD-,,,8C33" fecha!"+,2,@22@,-" aduana!"*<R)D$"> </InformacionAduanera> </Parte> </Concepto> </Conceptos> <Impuestos total&m.uestosTrasladados!"+/+ ,-"> <Traslados> <Traslado im.uesto!"&E<" tasa!"2C ,," im.orte!"+/+ ,-"/> </Traslados> </Impuestos> <Addenda> <Incuvox 'ote!"=ervicios solicitadas .or la gente Fue Fuiere hacer facturas"/> </Addenda> </Comprobante>

0ttp-//msdn.microso.t.com/en123/librar4/ms#5677$8!59=3:L.#";8!$.asp(

Вам также может понравиться