Doctype #59
Answered
by
daniele-orlando
dagmanolis
asked this question in
Questions
-
Awesome lib! Is there a way to write the DOCTYPE definition at the export ? |
Beta Was this translation helpful? Give feedback.
Answered by
daniele-orlando
May 2, 2022
Replies: 2 comments
-
Hi @dagmanolis. Thanks. If you have not, give a look a the Wiki page here: Exporting. To export with an HTML 5 doctype, you can use <!DOCTYPE html>
<book>
...
</book> otherwise you can remove the doctype completely with <book>
...
</book> and you can prepend any doctype you want. $doc_string =
$custom_doctype_string
. $xml->html(true)
; |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
daniele-orlando
-
Thanks a lot ! Have a nice day.
…On Mon, May 2, 2022 at 8:22 PM Daniele Orlando ***@***.***> wrote:
Hi @dagmanolis <https://github.com/dagmanolis>. Thanks.
If you have not, give a look a the Wiki page here: Exporting
<https://github.com/servo-php/fluidxml/wiki/Getting-Started:-10.-Exporting>
.
To export with an HTML 5 doctype, you can use $xml->html();
which produces
<!DOCTYPE html>
<book>
...
</book>
otherwise you can remove the doctype completely with $xml->html(true);
which produces
<book>
...
</book>
and you can prepend any doctype you want.
$doc_string =
$custom_doctype_string
. $xml->html(true)
;
—
Reply to this email directly, view it on GitHub
<#59 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKNPO4BUTVI7J2NLCTLYNJDVIAFLVANCNFSM5U2MELBA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*Dagdilelis Emmanouil*
+30 6972 129 567
founder: *WebXL - Quality Webing* | https://webxl.gr | blog:
https://manosdag.gr
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @dagmanolis. Thanks.
If you have not, give a look a the Wiki page here: Exporting.
To export with an HTML 5 doctype, you can use
$xml->html();
which produces
otherwise you can remove the doctype completely with
$xml->html(true);
which produces
and you can prepend any doctype you want.