UR::Ob...t::Xml(3pm)

πŸ“¦
version 0.470 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

✨ UR::Object::View::Default::Xml ✨

okay so bestie πŸ’– welcome to the manual page for UR::Object::View::Default::Xml, part of the User Contributed Perl Documentation situation. Yes the header up top was all UR::Ob...t::Xml(3pm) because someone did NOT have the space, but we know the real name, we been knew. 🫢


🌈 NAME 🌈

UR::Object::View::Default::Xml β€” it represents object state in XML format. that's it. that's the whole job. iconic behavior honestly πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

here's the vibe, copy it exactly bestie, do not freestyle:

$o = Acme::Product->get(1234);

$v = $o->create_view(
    toolkit => 'xml',
    aspects => [
      'id',
      'name',
      'qty_on_hand',
      'outstanding_orders' => [
        'id',
        'status',
        'customer' => [
          'id',
          'name',
        ]
      ],
    ],
);

$xml1 = $v->content;

$o->qty_on_hand(200);

$xml2 = $v->content;

so you make the view, you grab $v->content into $xml1, then you change a little something something ($o->qty_on_hand(200), go off), and you grab $v->content again into $xml2. the view stays live. it's giving main character energy fr fr ✨


πŸ’œ DESCRIPTION πŸ’œ

This class implements basic XML views of objects. that's the tea. β˜•

and it has standard behavior for all text views β€” meaning it's not out here doing weird custom stuff, it's just keeping it consistent with the text view squad. no cap. 🧚


πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, bestie, they're all connected iykyk:

  • UR::Object::View::Default::Text
  • UR::Object::View
  • UR::Object::View::Toolkit::XML
  • UR::Object::View::Toolkit::Text
  • UR::Object

✨ cute lil sign-off ✨ β€” this whole thing is living under perl v5.32.1 and it was dated 2022-01-17. slay, stay hydrated, and may your XML views always be valid πŸ’–πŸŽ€πŸ¦‹
πŸ“¦ where this page comes from