From 01cf4e9f982c4c1007bfdb86e202595149bb1f12 Mon Sep 17 00:00:00 2001
From: Adrian of Doom <52701496+futzu@users.noreply.github.com>
Date: Wed, 27 Nov 2024 02:40:23 -0500
Subject: [PATCH] Update xml.md
---
xml.md | 56 ++++++--------------------------------------------------
1 file changed, 6 insertions(+), 50 deletions(-)
diff --git a/xml.md b/xml.md
index 91fba5db..a7ad8a75 100644
--- a/xml.md
+++ b/xml.md
@@ -10,7 +10,6 @@ __I strongly suggest using the xml+binary format__ for DASH, it is very straight
#### xml in the Cue class
* [SCTE-35 xml input](#xml-as-input)
* [SCTE-35 xml output](#the-cue-class-can-return-xml-as-output)
-* [removing SCTE-35 xml attributes](#rm_xmlattr)
* [removing or changing the scte35 namespace](#removing-or-changing-the-namespace)
# Cli
@@ -153,7 +152,7 @@ Type "help", "copyright", "credits" or "license" for more information.
>>>> cue=Cue('/DA4AAAAAAAA///wBQb+AKpFLgAiAiBDVUVJAAAAA3//AAApPWwDDEFCQ0QwMTIzNDU2SBAAABZE5vg=')
>>>> cue.decode()
True
->>>> cue.xml()
+>>>> cue.xml(xmlbin=False)
```
```xml
@@ -167,10 +166,9 @@ True
```
-* the Cue class can also return xml in the xml+bin format
-* set the optional binary arg to True
+* By default, the Cue class returns xml in the xml+bin format
```py3
->>>> cue.xml(binary=True)
+>>>> cue.xml()
```
```xml
@@ -191,35 +189,8 @@ x="
```
```py3
>>>> cue2=Cue(x)
->>>> cue2.decode()
-True
->>>> cue2.xml()
-```
-```xml
-
-
-
-
-
-
-
- ABCD0123456H
-
-
-```
-
-### rm_xmlattr
-* If you want to remove an attribute, you can use rm_xmlattr function.
-* rm_xmlattr accepts an axl string, bytestring, or Node instance as input.
-
-```py3
->>>> from threefive.xml import rm_xmlattr
->>>> from threefive import Cue
->>>> cue=Cue('/DA4AAAAAAAA///wBQb+AKpFLgAiAiBDVUVJAAAAA3//AAApPWwDDEFCQ0QwMTIzNDU2SBAAABZE5vg=')
->>>> cue.decode()
->>>> x = cue.xml()
->>>> print(x)
+>>>> cue2.xml(xmlbin=False)
```
```xml
@@ -233,29 +204,14 @@ True
```
-```py3
->>>> y = rm_xmlattr(x,"sapType")
->>>> print(y)
-```
-```xml
-
-
-
-
-
-
-
- ABCD0123456H
-
-
-```
+
### Removing or changing the namespace
* the namespace can be removed or changed in either the xml or xml+bin format
* to remove the scte35 namespace, set the optional ns arg to an empty string
```py3
->>>> cue.xml(ns='')
+>>>> cue.xml(xmlbin=False,ns='')
```
```xml