writing XML code in Latex etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
writing XML code in Latex etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

24 Temmuz 2011 Pazar

writing XML code in Latex

two ways to produce XML code in Latex:

1st way:
input:


\begin{tabbing}
    \\ $<$Sem\=anticBase id="Biglia\_Anderlecht\_58\_4" xsi:type="AgentObjectType"$>$ \\
    \>  $<$Lab\=el$>$ \\
    \> \>      $<$Name /$>$ \\
    \>    $<$/Label$>$ \\
    \>    $<$Def\=inition$>$ \\
    \> \>      $<$FreeTextAnnotation /$>$ \\
    \>    $<$/Definition$>$ \\
    \>    $<$Med\=iaOccurrence$>$ \\
    \> \>      $<$Med\=iaLocator xsi:type="TemporalSegmentLocatorType"$>$ \\
    \> \> \>      $<$Med\=iaTime$>$ \\
    \> \> \> \>          $<$MediaTimePoint$>$58$<$/MediaTimePoint$>$ \\
    \> \> \>      $<$/MediaTime$>$ \\
    \> \>      $<$/MediaLocator$>$ \\
    \>    $<$/MediaOccurrence$>$ \\
    \>    $<$Relation type="urn:...:agentOf" target="Corner" /$>$ \\
    \>    $<$Relation type="urn:...:memberOf" target="ANDERLECHT" /$>$ \\
    \>     $<$Age\=nt xsi:type="PersonType"$>$ \\
    \> \>      $<$Nam\=e$>$ \\
    \> \> \>        $<$GivenName$>$ Biglia $<$/GivenName$>$ \\
    \> \> \>        $<$FamilyName /$>$ \\
    \> \>      $<$/Name$>$ \\
    \>    $<$/Agent$>$ \\
      $<$/SemanticBase$>$ \\
    \end{tabbing}


output:

















2nd way is by using listings style..