René's URL Explorer Experiment


Title: Documentation: · Issue #250 · STIXProject/python-stix · GitHub

Open Graph Title: Documentation: · Issue #250 · STIXProject/python-stix

X Title: Documentation: · Issue #250 · STIXProject/python-stix

Description: http://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml I was reading this in the context of parsing STIX out of a libtaxii object. I think it would be nice if the example included getting a handle on a STIX document ...

Open Graph Description: http://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml I was reading this in the context of parsing STIX out of a libtaxii object. I think it would be nice if the example inclu...

X Description: http://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml I was reading this in the context of parsing STIX out of a libtaxii object. I think it would be nice if the example inclu...

Opengraph URL: https://github.com/STIXProject/python-stix/issues/250

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Documentation: ","articleBody":"http://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml\n\nI was reading this in the context of parsing STIX out of a libtaxii object. I think it would be nice if the example included getting a handle on a STIX document out of libtaxii.\n\nFor instance, take this stub Inbox Message:\n\n``` xml\n\u003ctaxii_11:Inbox_Message xmlns:taxii_11=\"http://taxii.mitre.org/messages/taxii_xml_binding-1.1\"\n    message_id=\"1\"\u003e\n    \u003ctaxii_11:Content_Block\u003e\n        \u003ctaxii_11:Content_Binding binding_id=\"urn:stix.mitre.org:xml:1.1.1\"/\u003e\n        \u003ctaxii_11:Content\u003e\n            \u003cstix:STIX_Package xmlns:stix=\"http://stix.mitre.org/stix-1\" version=\"1.1.1\"/\u003e\n        \u003c/taxii_11:Content\u003e\n    \u003c/taxii_11:Content_Block\u003e\n\u003c/taxii_11:Inbox_Message\u003e\n```\n\nTo get a libtaxii handle on the message, you'd do (I did not double check to see if this is well documented or not, so perhaps there's a corresponding issue for libtaxii...):\n\n``` python\nimport libtaxii.messages_11 as tm11\ntaxii_xml = '\u003ctaxii_11:Inbox_Message\u003e...\u003c/taxii_11:Inbox_Message\u003e' # Use the above XML\nmsg = tm11.InboxMessage.from_xml(taxii_xml)\n# This prints out the STIX XML\nprint msg.content_blocks[0].content\n```\n\nHowever, there's no obvious/documented connection to how to get a `stix.core.STIXPackage` object from here. I ended up with:\n\n``` python\nfrom StringIO import StringIO\nfrom stix.core import STIXPackage\npackage = STIXPackage(StringIO(msg.content_blocks[0].content))\n# \u003cstix.core.stix_package.STIXPackage object at 0x7f6d19d6a5d0\u003e\n```\n\nThis issue has a couple items:\n1. Is this right? Or is there a cleaner way to go from `libtaxii` to `python-stix`\n2. Whatever the \"right\" way is, it probably makes sense to add it to RTD\n3. If it makes sense, I could add a mechanism to libtaxii to get the content etree directly (currently possible, but hacky).\n\nThank you.\n-Mark\n","author":{"url":"https://github.com/MarkDavidson","@type":"Person","name":"MarkDavidson"},"datePublished":"2015-04-06T16:43:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/250/python-stix/issues/250"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2dc65768-737b-af28-401f-9801fd8bbb51
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F94:355A4F:1926550:2189103:697040D5
html-safe-nonce05c3476c3599d4f6e427d19b27d633558f99c558e76149aab3155124c9d453ed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Rjk0OjM1NUE0RjoxOTI2NTUwOjIxODkxMDM6Njk3MDQwRDUiLCJ2aXNpdG9yX2lkIjoiNzE0NjIxNTQyNjM3Mzk5MjY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac56a87334f8e7e780acf6442c5cac8d56a5c987fa2dd868dea467cc1a4c526dd1
hovercard-subject-tagissue:66648304
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/STIXProject/python-stix/250/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7a6aaf5b987a39b03f46ca0a8fe12635dab2c7f6c0c44f1312faaac78031eb42/STIXProject/python-stix/issues/250
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7a6aaf5b987a39b03f46ca0a8fe12635dab2c7f6c0c44f1312faaac78031eb42/STIXProject/python-stix/issues/250
og:image:althttp://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml I was reading this in the context of parsing STIX out of a libtaxii object. I think it would be nice if the example inclu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMarkDavidson
hostnamegithub.com
expected-hostnamegithub.com
None9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2
turbo-cache-controlno-preview
go-importgithub.com/STIXProject/python-stix git https://github.com/STIXProject/python-stix.git
octolytics-dimension-user_id2774079
octolytics-dimension-user_loginSTIXProject
octolytics-dimension-repository_id8163746
octolytics-dimension-repository_nwoSTIXProject/python-stix
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id8163746
octolytics-dimension-repository_network_root_nwoSTIXProject/python-stix
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef643964067a552f02067066d6a910b2f90a5721f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTIXProject%2Fpython-stix%2Fissues%2F250
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FSTIXProject%2Fpython-stix%2Fissues%2F250
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=STIXProject%2Fpython-stix
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250
Reloadhttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250
STIXProject https://patch-diff.githubusercontent.com/STIXProject
python-stixhttps://patch-diff.githubusercontent.com/STIXProject/python-stix
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Fork 89 https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Star 246 https://patch-diff.githubusercontent.com/login?return_to=%2FSTIXProject%2Fpython-stix
Code https://patch-diff.githubusercontent.com/STIXProject/python-stix
Issues 26 https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues
Pull requests 0 https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulls
Actions https://patch-diff.githubusercontent.com/STIXProject/python-stix/actions
Projects 0 https://patch-diff.githubusercontent.com/STIXProject/python-stix/projects
Wiki https://patch-diff.githubusercontent.com/STIXProject/python-stix/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/STIXProject/python-stix/security
Please reload this pagehttps://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250
Insights https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulse
Code https://patch-diff.githubusercontent.com/STIXProject/python-stix
Issues https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues
Pull requests https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulls
Actions https://patch-diff.githubusercontent.com/STIXProject/python-stix/actions
Projects https://patch-diff.githubusercontent.com/STIXProject/python-stix/projects
Wiki https://patch-diff.githubusercontent.com/STIXProject/python-stix/wiki
Security https://patch-diff.githubusercontent.com/STIXProject/python-stix/security
Insights https://patch-diff.githubusercontent.com/STIXProject/python-stix/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/STIXProject/python-stix/issues/250
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/STIXProject/python-stix/issues/250
Documentation: https://patch-diff.githubusercontent.com/STIXProject/python-stix/issues/250#top
https://github.com/MarkDavidson
https://github.com/MarkDavidson
MarkDavidsonhttps://github.com/MarkDavidson
on Apr 6, 2015https://github.com/STIXProject/python-stix/issues/250#issue-66648304
http://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xmlhttp://stix.readthedocs.org/en/stable/getting_started.html#parsing-stix-xml
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.